mirror of
https://github.com/python/cpython.git
synced 2026-04-15 00:00:57 +00:00
[3.14] gh-146615: Fix format specifiers in Python/ directory (GH-146619) (GH-146650)
(cherry picked from commit dcb260eff2)
Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
This commit is contained in:
parent
ed557e6a5f
commit
9ac758e6a4
6 changed files with 13 additions and 13 deletions
|
|
@ -1379,11 +1379,11 @@ get_interactive_filename(PyObject *filename, Py_ssize_t count)
|
|||
if (middle == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
result = PyUnicode_FromFormat("<%U-%d>", middle, count);
|
||||
result = PyUnicode_FromFormat("<%U-%zd>", middle, count);
|
||||
Py_DECREF(middle);
|
||||
} else {
|
||||
result = PyUnicode_FromFormat(
|
||||
"%U-%d", filename, count);
|
||||
"%U-%zd", filename, count);
|
||||
}
|
||||
return result;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue