summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-10 19:15:25 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-10 19:15:25 (GMT)
commit3326cb6a36c6f2545d19d4cc29d5225223c2a3a2 (patch)
tree29b89ec47f2fca1beb7d0f59263c51a9876e0f1d /Objects
parent0e36826a045d4a7c5ea3df5438b522dbfc8afa9b (diff)
downloadcpython-3326cb6a36c6f2545d19d4cc29d5225223c2a3a2.zip
cpython-3326cb6a36c6f2545d19d4cc29d5225223c2a3a2.tar.gz
cpython-3326cb6a36c6f2545d19d4cc29d5225223c2a3a2.tar.bz2
Fix "unicode_escape" encoder
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
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 == '\\') {