Kaydet (Commit) 2a1e0606 authored tarafından Fredrik Lundh's avatar Fredrik Lundh

- changed __repr__ to use "unicode escape" encoding for unicode

  strings, instead of the default encoding.
  (see "minidom" thread for discussion, and also patch #100706)
üst d5c84ede
......@@ -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;
......
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