]> granicus.if.org Git - python/commitdiff
Revert changes to use PyArg_Parse(), so any sequence will continue to work -- Spotted...
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 30 Jul 2002 12:27:43 +0000 (12:27 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 30 Jul 2002 12:27:43 +0000 (12:27 +0000)
Modules/posixmodule.c

index c44ce9195a42a8e415c8a415c020d81b8668597e..6f18da874e014bbac5c1d1eda16b4696e17b35d8 100644 (file)
@@ -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;