diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 2d3eaa3..1ca131e 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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); |