Mercurial > cpython-lru_cache-weakref
diff Python/getargs.c @ 87235:d1dc7888656f
PY_FORMAT_SIZE_T should not be used with PyErr_Format(), PyErr_Format("%zd") is
portable
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Mon, 18 Nov 2013 02:05:31 +0100 |
| parents | 103998db4407 |
| children |
line wrap: on
line diff
--- a/Python/getargs.c Mon Nov 18 01:36:29 2013 +0100 +++ b/Python/getargs.c Mon Nov 18 02:05:31 2013 +0100 @@ -1476,8 +1476,7 @@ 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,
