summaryrefslogtreecommitdiff
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2007-10-14 02:05:51 +0000
committerAlexandre Vassalotti <alexandre@peadrop.com>2007-10-14 02:05:51 +0000
commit70a237179f1213b0c180898b6e1f0b6c4e9cd11c (patch)
treea0d454e61877a808e682ab90d2cc268d4ce5f23c /Modules/posixmodule.c
parent659e7f44e2f0bc92db8b4e33fb6bae429dcbd205 (diff)
downloadcpython-git-70a237179f1213b0c180898b6e1f0b6c4e9cd11c.tar.gz
Remove the buffer API from PyUnicode as specified by PEP 3137. Also,
fix the error message of the 't' format unit, in getargs.c, so that it asks for bytes, instead of string.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 75ce9914ac..2fe2b6396c 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2135,7 +2135,8 @@ posix_listdir(PyObject *self, PyObject *args)
FILEFINDBUF3 ep;
APIRET rc;
- if (!PyArg_ParseTuple(args, "t#:listdir", &name, &len))
+ if (!PyArg_ParseTuple(args, "et#:listdir",
+ Py_FileSystemDefaultEncoding, &name, &len))
return NULL;
if (len >= MAX_PATH) {
PyErr_SetString(PyExc_ValueError, "path too long");