mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264)
This commit is contained in:
parent
10f8ce6688
commit
d53fe5f407
20 changed files with 35 additions and 35 deletions
|
@ -1210,7 +1210,7 @@ PyObject *_PyBytes_DecodeEscape(const char *s,
|
|||
|
||||
if (!errors || strcmp(errors, "strict") == 0) {
|
||||
PyErr_Format(PyExc_ValueError,
|
||||
"invalid \\x escape at position %d",
|
||||
"invalid \\x escape at position %zd",
|
||||
s - 2 - (end - len));
|
||||
goto failed;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue