[Python-checkins] cpython: Fix PyUnicode_EncodeCharmap()

victor.stinner python-checkins at python.org
Fri Nov 4 00:23:25 CET 2011


http://hg.python.org/cpython/rev/bb9a19a74277
changeset:   73338:bb9a19a74277
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Fri Nov 04 00:24:51 2011 +0100
summary:
  Fix PyUnicode_EncodeCharmap()

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
@@ -8397,7 +8397,7 @@
         return NULL;
     result = _PyUnicode_EncodeCharmap(unicode, mapping, errors);
     Py_DECREF(unicode);
-    return NULL;
+    return result;
 }
 
 PyObject *

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


More information about the Python-checkins mailing list