diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-04-04 18:59:44 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-04-04 18:59:44 (GMT) |
commit | 69598d4ccfa250ab49fc417f8e66f384ea2b0767 (patch) | |
tree | f34b8dc3d4ab121a8c03333d358d31ebfe2cb9f8 | |
parent | 511e222e0aa120e15632752613c96493dbe8a672 (diff) | |
download | cpython-69598d4ccfa250ab49fc417f8e66f384ea2b0767.zip cpython-69598d4ccfa250ab49fc417f8e66f384ea2b0767.tar.gz cpython-69598d4ccfa250ab49fc417f8e66f384ea2b0767.tar.bz2 |
Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing format
character for the "end" parameter
-rw-r--r-- | Objects/exceptions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 861dbc7..a733f30 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -2124,7 +2124,7 @@ _PyUnicodeTranslateError_Create( PyObject *object, Py_ssize_t start, Py_ssize_t end, const char *reason) { - return PyObject_CallFunction(PyExc_UnicodeTranslateError, "Ons", + return PyObject_CallFunction(PyExc_UnicodeTranslateError, "Onns", object, start, end, reason); } |