Use PyArg_ParseTuple() instead of PyArg_Parse() which is deprecated
This commit is contained in:
parent
50d5d4fe31
commit
50584b4c78
|
@ -1419,7 +1419,7 @@ posix_utime(PyObject *self, PyObject *args)
|
||||||
res = utime(path, NULL);
|
res = utime(path, NULL);
|
||||||
Py_END_ALLOW_THREADS
|
Py_END_ALLOW_THREADS
|
||||||
}
|
}
|
||||||
else if (!PyArg_Parse(arg, "(ll)", &atime, &mtime)) {
|
else if (!PyArg_ParseTuple(arg, "ll", &atime, &mtime)) {
|
||||||
PyErr_SetString(PyExc_TypeError,
|
PyErr_SetString(PyExc_TypeError,
|
||||||
"utime() arg 2 must be a tuple (atime, mtime)");
|
"utime() arg 2 must be a tuple (atime, mtime)");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue