summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-07-30 12:27:43 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2002-07-30 12:27:43 +0000
commitcfa1f52941b525d339e2db45b968b99f7334fbff (patch)
tree385288d25d45a036cb4609b951eb400bc46a4637 /Modules
parent37d5a15e026b368cdbe5df4dc592b50fac20a57b (diff)
downloadcpython-git-cfa1f52941b525d339e2db45b968b99f7334fbff.tar.gz
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 c44ce9195a..6f18da874e 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;