Skip to content

Commit cfa1f52

Browse files
committed
Revert changes to use PyArg_Parse(), so any sequence will continue to work -- Spotted by Just van Rossum
1 parent 37d5a15 commit cfa1f52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ posix_utime(PyObject *self, PyObject *args)
14191419
res = utime(path, NULL);
14201420
Py_END_ALLOW_THREADS
14211421
}
1422-
else if (!PyArg_ParseTuple(arg, "ll", &atime, &mtime)) {
1422+
else if (!PyArg_Parse(arg, "(ll)", &atime, &mtime)) {
14231423
PyErr_SetString(PyExc_TypeError,
14241424
"utime() arg 2 must be a tuple (atime, mtime)");
14251425
return NULL;

0 commit comments

Comments
 (0)