[Python-checkins] cpython: Fix typo in unicode_decode_call_errorhandler_writer()

victor.stinner python-checkins at python.org
Thu Apr 18 00:27:09 CEST 2013


http://hg.python.org/cpython/rev/7eb52460c999
changeset:   83434:7eb52460c999
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Apr 17 23:58:16 2013 +0200
summary:
  Fix typo in unicode_decode_call_errorhandler_writer()

Bug introduced by changeset 7ed9993d53b4.

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


diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -4124,7 +4124,7 @@
     if (PyUnicode_GET_LENGTH(repunicode) > 1)
         writer->overallocate = 1;
     if (_PyUnicodeWriter_WriteStr(writer, repunicode) == -1)
-        return
+        goto onError;
 
     *endinpos = newpos;
     *inptr = *input + newpos;

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


More information about the Python-checkins mailing list