diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-07-30 12:27:43 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-07-30 12:27:43 (GMT) |
commit | cfa1f52941b525d339e2db45b968b99f7334fbff (patch) | |
tree | 385288d25d45a036cb4609b951eb400bc46a4637 /Modules | |
parent | 37d5a15e026b368cdbe5df4dc592b50fac20a57b (diff) | |
download | cpython-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.c | 2 |
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; |