commit | fc026c98d82afd4ef2041b5cdca780a47b752821 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Fri Nov 04 00:24:51 2011 +0100 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Fri Nov 04 00:24:51 2011 +0100 |
tree | ff35b25ea9c84b556115d7907d76d90aaf2a0736 | |
parent | 7931d9a9514a727ac476f4850406a7d8f5e1c7f7 [diff] |
Fix PyUnicode_EncodeCharmap()
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 0c5c485..541ded8 100644 --- 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 *