bpo-36254: Fix yet one invalid use of %d in format string in C. (GH-1… · python/cpython@2c0d3f4 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 2c0d3f4
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2134,7 +2134,7 @@ vgetargskeywordsfast_impl(PyObject *const *args, Py_ssize_t nargs, | ||
2134 | 2134 | } |
2135 | 2135 | else { |
2136 | 2136 | PyErr_Format(PyExc_TypeError, |
2137 | -"%.200s%s takes %s %d positional argument%s (%d given)", | |
2137 | +"%.200s%s takes %s %d positional argument%s (%zd given)", | |
2138 | 2138 | (parser->fname == NULL) ? "function" : parser->fname, |
2139 | 2139 | (parser->fname == NULL) ? "" : "()", |
2140 | 2140 | (parser->min < parser->max) ? "at most" : "exactly", |