diff options
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ PyUnicode_EncodeCharmap(const Py_UNICODE *p, return NULL; result = _PyUnicode_EncodeCharmap(unicode, mapping, errors); Py_DECREF(unicode); - return NULL; + return result; } PyObject * |