summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-08 02:25:24 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-08 02:25:24 (GMT)
commit7e48898d86aaddac7f26b7a859a7b8996dfdbea9 (patch)
treeab895a2a39069e9c005ee5e887d2292d0e7ab94e /Modules/posixmodule.c
parentb317f8aa0d1387f30c72df47bf18cb7517f45f2a (diff)
downloadcpython-7e48898d86aaddac7f26b7a859a7b8996dfdbea9.zip
cpython-7e48898d86aaddac7f26b7a859a7b8996dfdbea9.tar.gz
cpython-7e48898d86aaddac7f26b7a859a7b8996dfdbea9.tar.bz2
Use the t# format where appropriate. Greg Stein.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index e6143e5..876522b 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -612,7 +612,7 @@ posix_listdir(self, args)
WIN32_FIND_DATA FileData;
char namebuf[MAX_PATH+5];
- if (!PyArg_Parse(args, "s#", &name, &len))
+ if (!PyArg_Parse(args, "t#", &name, &len))
return NULL;
if (len >= MAX_PATH) {
PyErr_SetString(PyExc_ValueError, "path too long");
@@ -673,7 +673,7 @@ posix_listdir(self, args)
char namebuf[MAX_PATH+5];
struct _find_t ep;
- if (!PyArg_Parse(args, "s#", &name, &len))
+ if (!PyArg_Parse(args, "t#", &name, &len))
return NULL;
if (len >= MAX_PATH) {
PyErr_SetString(PyExc_ValueError, "path too long");
@@ -738,7 +738,7 @@ posix_listdir(self, args)
FILEFINDBUF3 ep;
APIRET rc;
- if (!PyArg_Parse(args, "s#", &name, &len))
+ if (!PyArg_Parse(args, "t#", &name, &len))
return NULL;
if (len >= MAX_PATH) {
PyErr_SetString(PyExc_ValueError, "path too long");