diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-18 01:05:31 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-18 01:05:31 (GMT) |
commit | cb29ec5f74506add92cc8103b31c0abb1d99afcb (patch) | |
tree | 1db11a2b4ddabf2bd8b0f81e6088ff1c8cfd455e /Python | |
parent | 3f658bec35c3985355d001ac4dcfb64a4de7ca93 (diff) | |
download | cpython-cb29ec5f74506add92cc8103b31c0abb1d99afcb.zip cpython-cb29ec5f74506add92cc8103b31c0abb1d99afcb.tar.gz cpython-cb29ec5f74506add92cc8103b31c0abb1d99afcb.tar.bz2 |
PY_FORMAT_SIZE_T should not be used with PyErr_Format(), PyErr_Format("%zd") is
portable
Diffstat (limited to 'Python')
-rw-r--r-- | Python/getargs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 2cc3031..6084568 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -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, |