mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Get rid of another use of PyArg_Parse()
This commit is contained in:
parent
02098fa56b
commit
7829335763
1 changed files with 2 additions and 2 deletions
|
@ -736,8 +736,8 @@ parse_syntax_error(PyObject *err, PyObject **message, char **filename,
|
||||||
|
|
||||||
/* old style errors */
|
/* old style errors */
|
||||||
if (PyTuple_Check(err))
|
if (PyTuple_Check(err))
|
||||||
return PyArg_Parse(err, "(O(ziiz))", message, filename,
|
return PyArg_ParseTuple(err, "O(ziiz)", message, filename,
|
||||||
lineno, offset, text);
|
lineno, offset, text);
|
||||||
|
|
||||||
/* new style errors. `err' is an instance */
|
/* new style errors. `err' is an instance */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue