mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Convert file names of posix.access according to the file system encoding.
This commit is contained in:
parent
3e1dd3be49
commit
b60ae99601
3 changed files with 6 additions and 1 deletions
|
|
@ -1113,7 +1113,8 @@ posix_access(PyObject *self, PyObject *args)
|
|||
PyErr_Clear();
|
||||
}
|
||||
#endif
|
||||
if (!PyArg_ParseTuple(args, "si:access", &path, &mode))
|
||||
if (!PyArg_ParseTuple(args, "eti:access",
|
||||
Py_FileSystemDefaultEncoding, &path, &mode))
|
||||
return NULL;
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
res = access(path, mode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue