From cfa1f52941b525d339e2db45b968b99f7334fbff Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Tue, 30 Jul 2002 12:27:43 +0000 Subject: [PATCH] Revert changes to use PyArg_Parse(), so any sequence will continue to work -- Spotted by Just van Rossum --- Modules/posixmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index c44ce9195a4..6f18da874e0 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;