mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
fix #4720: the format to PyArg_ParseTupleAndKeywords can now start with '|'
This commit is contained in:
parent
1c39785256
commit
4caef5c7e2
2 changed files with 28 additions and 1 deletions
|
@ -1601,7 +1601,7 @@ vgetargskeywords(PyObject *args, PyObject *keywords, const char *format,
|
|||
}
|
||||
}
|
||||
|
||||
if (!IS_END_OF_FORMAT(*format)) {
|
||||
if (!IS_END_OF_FORMAT(*format) && *format != '|') {
|
||||
PyErr_Format(PyExc_RuntimeError,
|
||||
"more argument specifiers than keyword list entries "
|
||||
"(remaining format:'%s')", format);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue