From: Serhiy Storchaka Date: Thu, 14 Mar 2019 08:06:05 +0000 (+0200) Subject: bpo-36254: Fix yet one invalid use of %d in format string in C. (GH-12318) X-Git-Tag: v3.8.0a3~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c0d3f454705bb5ccf5f6189f3cf77bbae4f056b;p=thirdparty%2FPython%2Fcpython.git bpo-36254: Fix yet one invalid use of %d in format string in C. (GH-12318) --- diff --git a/Python/getargs.c b/Python/getargs.c index 77ded609eea9..05ebe9c45b37 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -2134,7 +2134,7 @@ vgetargskeywordsfast_impl(PyObject *const *args, Py_ssize_t nargs, } else { PyErr_Format(PyExc_TypeError, - "%.200s%s takes %s %d positional argument%s (%d given)", + "%.200s%s takes %s %d positional argument%s (%zd given)", (parser->fname == NULL) ? "function" : parser->fname, (parser->fname == NULL) ? "" : "()", (parser->min < parser->max) ? "at most" : "exactly",