[Python-checkins] cpython: Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing format

victor.stinner python-checkins at python.org
Fri Apr 4 21:02:53 CEST 2014


http://hg.python.org/cpython/rev/95d4e8124c6a
changeset:   90148:95d4e8124c6a
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Fri Apr 04 20:59:44 2014 +0200
summary:
  Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing format
character for the "end" parameter

files:
  Objects/exceptions.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/exceptions.c b/Objects/exceptions.c
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -2124,7 +2124,7 @@
     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);
 }
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list