summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-03-14 08:06:05 (GMT)
committerGitHub <noreply@github.com>2019-03-14 08:06:05 (GMT)
commit2c0d3f454705bb5ccf5f6189f3cf77bbae4f056b (patch)
treed5ddcffe8cc91386f920400fccc4b6591077ec56 /Python/getargs.c
parentf2f55e7f03d332fd43bc665a86d585a79c3b3ed4 (diff)
downloadcpython-2c0d3f454705bb5ccf5f6189f3cf77bbae4f056b.zip
cpython-2c0d3f454705bb5ccf5f6189f3cf77bbae4f056b.tar.gz
cpython-2c0d3f454705bb5ccf5f6189f3cf77bbae4f056b.tar.bz2
bpo-36254: Fix yet one invalid use of %d in format string in C. (GH-12318)
Diffstat (limited to 'Python/getargs.c')
-rw-r--r--Python/getargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 77ded60..05ebe9c 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",