mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
PY_FORMAT_SIZE_T should not be used with PyErr_Format(), PyErr_Format("%zd") is
portable
This commit is contained in:
parent
3f658bec35
commit
cb29ec5f74
1 changed files with 1 additions and 2 deletions
|
@ -1476,8 +1476,7 @@ vgetargskeywords(PyObject *args, PyObject *keywords, const char *format,
|
|||
nkeywords = (keywords == NULL) ? 0 : PyDict_Size(keywords);
|
||||
if (nargs + nkeywords > len) {
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"%s%s takes at most %d argument%s "
|
||||
"(%" PY_FORMAT_SIZE_T "d given)",
|
||||
"%s%s takes at most %d argument%s (%zd given)",
|
||||
(fname == NULL) ? "function" : fname,
|
||||
(fname == NULL) ? "" : "()",
|
||||
len,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue