]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
PY_FORMAT_SIZE_T should not be used with PyErr_Format(), PyErr_Format("%zd") is
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 18 Nov 2013 01:05:31 +0000 (02:05 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 18 Nov 2013 01:05:31 +0000 (02:05 +0100)
portable

Python/getargs.c

index 2cc3031c17fe7b6af5e9900b727a8765cb185dd2..60845680fc2a562ed13b64821436f9a2bb0ce04b 100644 (file)
@@ -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,