Commit cfa1f529 authored by Neal Norwitz's avatar Neal Norwitz

Revert changes to use PyArg_Parse(), so any sequence will continue to work --...

Revert changes to use PyArg_Parse(), so any sequence will continue to work -- Spotted by Just van Rossum
parent 37d5a15e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment