Get rid of another use of PyArg_Parse()
This commit is contained in:
parent
02098fa56b
commit
7829335763
@ -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 */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user