mirror of
https://github.com/python/cpython.git
synced 2026-10-28 18:35:21 +08:00
gh-146615: Fix format specifiers in Python/ directory (GH-146619)
This commit is contained in:
1 parent
b7055533ab
commit
dcb260eff2
6 files changed
+13
-13
No files matched your search
+2
-2
@@ -1382,11 +1382,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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user