summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-07-30 12:27:43 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-07-30 12:27:43 (GMT)
commitcfa1f52941b525d339e2db45b968b99f7334fbff (patch)
tree385288d25d45a036cb4609b951eb400bc46a4637 /Modules
parent37d5a15e026b368cdbe5df4dc592b50fac20a57b (diff)
downloadcpython-cfa1f52941b525d339e2db45b968b99f7334fbff.zip
cpython-cfa1f52941b525d339e2db45b968b99f7334fbff.tar.gz
cpython-cfa1f52941b525d339e2db45b968b99f7334fbff.tar.bz2
Revert changes to use PyArg_Parse(), so any sequence will continue to work -- Spotted by Just van Rossum
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index c44ce91..6f18da8 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1419,7 +1419,7 @@ posix_utime(PyObject *self, PyObject *args)
res = utime(path, NULL);
Py_END_ALLOW_THREADS
}
- else if (!PyArg_ParseTuple(arg, "ll", &atime, &mtime)) {
+ else if (!PyArg_Parse(arg, "(ll)", &atime, &mtime)) {
PyErr_SetString(PyExc_TypeError,
"utime() arg 2 must be a tuple (atime, mtime)");
return NULL;