mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
gh-95876: Fix format string in pegen error location code (#95877)
This commit is contained in:
parent
5ed584cb6b
commit
b4c857d0fd
2 changed files with 5 additions and 1 deletions
|
@ -371,7 +371,7 @@ _PyPegen_raise_error_known_location(Parser *p, PyObject *errtype,
|
|||
}
|
||||
}
|
||||
}
|
||||
tmp = Py_BuildValue("(OiiNii)", p->tok->filename, lineno, col_number, error_line, end_lineno, end_col_number);
|
||||
tmp = Py_BuildValue("(OnnNnn)", p->tok->filename, lineno, col_number, error_line, end_lineno, end_col_number);
|
||||
if (!tmp) {
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue