mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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 */
|
||||
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…
Add table
Add a link
Reference in a new issue