mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Revert changes to use PyArg_Parse(), so any sequence will continue to work -- Spotted by Just van Rossum
This commit is contained in:
parent
37d5a15e02
commit
cfa1f52941
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue