Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69598d4

Browse files
committed
Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing format
character for the "end" parameter
1 parent 511e222 commit 69598d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,7 @@ _PyUnicodeTranslateError_Create(
21242124
PyObject *object,
21252125
Py_ssize_t start, Py_ssize_t end, const char *reason)
21262126
{
2127-
return PyObject_CallFunction(PyExc_UnicodeTranslateError, "Ons",
2127+
return PyObject_CallFunction(PyExc_UnicodeTranslateError, "Onns",
21282128
object, start, end, reason);
21292129
}
21302130

0 commit comments

Comments
 (0)