]> granicus.if.org Git - python/commitdiff
Get rid of another use of PyArg_Parse()
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 1 Apr 2002 01:41:20 +0000 (01:41 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 1 Apr 2002 01:41:20 +0000 (01:41 +0000)
Python/pythonrun.c

index 64418e417d447d8ee09397cb3809d7ef4df8df50..b22009db17261fe5db93b97000d105ea23a6d13c 100644 (file)
@@ -736,8 +736,8 @@ parse_syntax_error(PyObject *err, PyObject **message, char **filename,
 
        /* old style errors */
        if (PyTuple_Check(err))
-               return PyArg_Parse(err, "(O(ziiz))", message, filename,
-                                  lineno, offset, text);
+               return PyArg_ParseTuple(err, "O(ziiz)", message, filename,
+                                       lineno, offset, text);
 
        /* new style errors.  `err' is an instance */