diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-10 19:15:25 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-10 19:15:25 (GMT) |
commit | 3326cb6a36c6f2545d19d4cc29d5225223c2a3a2 (patch) | |
tree | 29b89ec47f2fca1beb7d0f59263c51a9876e0f1d /Objects | |
parent | 0e36826a045d4a7c5ea3df5438b522dbfc8afa9b (diff) | |
download | cpython-3326cb6a36c6f2545d19d4cc29d5225223c2a3a2.zip cpython-3326cb6a36c6f2545d19d4cc29d5225223c2a3a2.tar.gz cpython-3326cb6a36c6f2545d19d4cc29d5225223c2a3a2.tar.bz2 |
Fix "unicode_escape" encoder
Diffstat (limited to 'Objects')
-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 6174998..4c509b4 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -5938,7 +5938,7 @@ PyUnicode_AsUnicodeEscapeString(PyObject *unicode) p = PyBytes_AS_STRING(repr); for (i = 0; i < len; i++) { - Py_UNICODE ch = PyUnicode_READ(kind, data, i); + Py_UCS4 ch = PyUnicode_READ(kind, data, i); /* Escape backslashes */ if (ch == '\\') { |