commit | 50584b4c781653ee4c034a2836a1d8a6b26048df | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Tue Jul 30 01:23:07 2002 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Tue Jul 30 01:23:07 2002 +0000 |
tree | 32f7eed78e65db7e91a23481027a05127d5cc3e8 | |
parent | 50d5d4fe31d7f75021b8798d6b0c95362a10f4dd [diff] [blame] |
Use PyArg_ParseTuple() instead of PyArg_Parse() which is deprecated
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 6f18da8..c44ce91 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c
@@ -1419,7 +1419,7 @@ 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;