commit | 262c00a21e4fff85b8d4cad95256684fa219d5e2 | [log] [tgz] |
---|---|---|
author | Anthony Baxter <anthonybaxter@gmail.com> | Thu Mar 30 10:53:17 2006 +0000 |
committer | Anthony Baxter <anthonybaxter@gmail.com> | Thu Mar 30 10:53:17 2006 +0000 |
tree | 462941320bd222eb01e09afa4989c8245b55fb0a | |
parent | 80a5d017906f6d3111da619e686a49ecc938cb12 [diff] [blame] |
Fixed bug #1459029 - unicode reprs were double-escaped. Backed out an old patch from 2000.
diff --git a/Objects/object.c b/Objects/object.c index 3404c35..63fb4fd 100644 --- a/Objects/object.c +++ b/Objects/object.c
@@ -316,7 +316,7 @@ #ifdef Py_USING_UNICODE if (PyUnicode_Check(res)) { PyObject* str; - str = PyUnicode_AsUnicodeEscapeString(res); + str = PyUnicode_AsEncodedString(res, NULL, NULL); Py_DECREF(res); if (str) res = str;