mirror of
https://github.com/python/cpython.git
synced 2026-04-15 08:11:10 +00:00
[3.13] gh-146615: Fix format specifiers in Python/ directory (GH-146619) (GH-146654)
(cherry picked from commit dcb260eff2)
Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
This commit is contained in:
parent
499df18d80
commit
e726d28a23
5 changed files with 10 additions and 10 deletions
|
|
@ -2973,7 +2973,7 @@ zip_next(zipobject *lz)
|
|||
// ValueError: zip() argument 3 is shorter than arguments 1-2
|
||||
const char* plural = i == 1 ? " " : "s 1-";
|
||||
return PyErr_Format(PyExc_ValueError,
|
||||
"zip() argument %d is shorter than argument%s%d",
|
||||
"zip() argument %zd is shorter than argument%s%zd",
|
||||
i + 1, plural, i);
|
||||
}
|
||||
for (i = 1; i < tuplesize; i++) {
|
||||
|
|
@ -2983,7 +2983,7 @@ zip_next(zipobject *lz)
|
|||
Py_DECREF(item);
|
||||
const char* plural = i == 1 ? " " : "s 1-";
|
||||
return PyErr_Format(PyExc_ValueError,
|
||||
"zip() argument %d is longer than argument%s%d",
|
||||
"zip() argument %zd is longer than argument%s%zd",
|
||||
i + 1, plural, i);
|
||||
}
|
||||
if (PyErr_Occurred()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue