diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2000-07-08 17:43:32 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2000-07-08 17:43:32 (GMT) |
commit | 2a1e060619b10062ce7ef2b826b2da940096f7a5 (patch) | |
tree | 94b835595a4b98549efc16766fee0371443d05fe /Objects | |
parent | d5c84ede06311f61a21cd5656e8c1ea54c8bfd29 (diff) | |
download | cpython-2a1e060619b10062ce7ef2b826b2da940096f7a5.zip cpython-2a1e060619b10062ce7ef2b826b2da940096f7a5.tar.gz cpython-2a1e060619b10062ce7ef2b826b2da940096f7a5.tar.bz2 |
- changed __repr__ to use "unicode escape" encoding for unicode
strings, instead of the default encoding.
(see "minidom" thread for discussion, and also patch #100706)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c index a04e00b..9c4cd6a 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -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; |