- 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:
Fredrik Lundh 2000-07-08 17:43:32 +00:00
parent d5c84ede06
commit 2a1e060619
1 changed files with 1 additions and 1 deletions

View File

@ -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;