Kaydet (Commit) 3326cb6a authored tarafından Victor Stinner's avatar Victor Stinner

Fix "unicode_escape" encoder

üst 0e36826a
......@@ -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 == '\\') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment