mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Replace tabs with spaces in posixmodule.c
This commit is contained in:
commit
d25b3982c7
1 changed files with 6 additions and 6 deletions
|
@ -2442,7 +2442,7 @@ posix_chdir(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||||
result = win32_wchdir(path.wide);
|
result = win32_wchdir(path.wide);
|
||||||
else
|
else
|
||||||
result = win32_chdir(path.narrow);
|
result = win32_chdir(path.narrow);
|
||||||
result = !result; /* on unix, success = 0, on windows, success = !0 */
|
result = !result; /* on unix, success = 0, on windows, success = !0 */
|
||||||
#else
|
#else
|
||||||
#ifdef HAVE_FCHDIR
|
#ifdef HAVE_FCHDIR
|
||||||
if (path.fd != -1)
|
if (path.fd != -1)
|
||||||
|
@ -6700,12 +6700,12 @@ posix_symlink(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||||
if (!check_CreateSymbolicLink()) {
|
if (!check_CreateSymbolicLink()) {
|
||||||
PyErr_SetString(PyExc_NotImplementedError,
|
PyErr_SetString(PyExc_NotImplementedError,
|
||||||
"CreateSymbolicLink functions not found");
|
"CreateSymbolicLink functions not found");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (!win32_can_symlink) {
|
if (!win32_can_symlink) {
|
||||||
PyErr_SetString(PyExc_OSError, "symbolic link privilege not held");
|
PyErr_SetString(PyExc_OSError, "symbolic link privilege not held");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O&O&|i$O&:symlink",
|
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O&O&|i$O&:symlink",
|
||||||
|
@ -6781,7 +6781,7 @@ win_readlink(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||||
DWORD n_bytes_returned;
|
DWORD n_bytes_returned;
|
||||||
DWORD io_result;
|
DWORD io_result;
|
||||||
PyObject *po, *result;
|
PyObject *po, *result;
|
||||||
int dir_fd;
|
int dir_fd;
|
||||||
HANDLE reparse_point_handle;
|
HANDLE reparse_point_handle;
|
||||||
|
|
||||||
char target_buffer[MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
|
char target_buffer[MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue