From: Neal Norwitz Date: Tue, 30 Jul 2002 12:27:43 +0000 (+0000) Subject: Revert changes to use PyArg_Parse(), so any sequence will continue to work -- Spotted... X-Git-Tag: v2.3c1~4824 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cfa1f52941b525d339e2db45b968b99f7334fbff;p=python Revert changes to use PyArg_Parse(), so any sequence will continue to work -- Spotted by Just van Rossum --- 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;