Commit 50584b4c authored by Neal Norwitz's avatar Neal Norwitz

Use PyArg_ParseTuple() instead of PyArg_Parse() which is deprecated

parent 50d5d4fe
......@@ -1419,7 +1419,7 @@ posix_utime(PyObject *self, PyObject *args)
res = utime(path, NULL);
Py_END_ALLOW_THREADS
}
else if (!PyArg_Parse(arg, "(ll)", &atime, &mtime)) {
else if (!PyArg_ParseTuple(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