]> granicus.if.org Git - python/commitdiff
Use PyArg_ParseTuple() instead of PyArg_Parse() which is deprecated
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 30 Jul 2002 01:23:07 +0000 (01:23 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 30 Jul 2002 01:23:07 +0000 (01:23 +0000)
Modules/posixmodule.c

index 6f18da874e014bbac5c1d1eda16b4696e17b35d8..c44ce9195a42a8e415c8a415c020d81b8668597e 100644 (file)
@@ -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;