Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7829335

Browse files
committed
Get rid of another use of PyArg_Parse()
1 parent 02098fa commit 7829335

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/pythonrun.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,8 @@ parse_syntax_error(PyObject *err, PyObject **message, char **filename,
736736

737737
/* old style errors */
738738
if (PyTuple_Check(err))
739-
return PyArg_Parse(err, "(O(ziiz))", message, filename,
740-
lineno, offset, text);
739+
return PyArg_ParseTuple(err, "O(ziiz)", message, filename,
740+
lineno, offset, text);
741741

742742
/* new style errors. `err' is an instance */
743743

0 commit comments

Comments
 (0)