- changed __repr__ to use "unicode escape" encoding for unicode
strings, instead of the default encoding. (see "minidom" thread for discussion, and also patch #100706)
This commit is contained in:
parent
d5c84ede06
commit
2a1e060619
|
@ -267,7 +267,7 @@ PyObject_Repr(v)
|
|||
return NULL;
|
||||
if (PyUnicode_Check(res)) {
|
||||
PyObject* str;
|
||||
str = PyUnicode_AsEncodedString(res, NULL, NULL);
|
||||
str = PyUnicode_AsUnicodeEscapeString(res);
|
||||
Py_DECREF(res);
|
||||
if (str)
|
||||
res = str;
|
||||
|
|
Loading…
Reference in New Issue