gh-146615: Fix format specifiers in Python/ directory (GH-146619)

This commit is contained in:
sunmy2019 2026-03-31 15:59:17 +08:00 committed by GitHub
parent b7055533ab
commit dcb260eff2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 13 additions and 13 deletions

View file

@ -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;