]> granicus.if.org Git - python/commitdiff
bpo-36254: Fix yet one invalid use of %d in format string in C. (GH-12318)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 14 Mar 2019 08:06:05 +0000 (10:06 +0200)
committerGitHub <noreply@github.com>
Thu, 14 Mar 2019 08:06:05 +0000 (10:06 +0200)
Python/getargs.c

index 77ded609eea951b7d67170c1435ad796cb24e556..05ebe9c45b378055255120e604189bdd0cb3fdf9 100644 (file)
@@ -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",