diff options
author | Anthony Baxter <anthonybaxter@gmail.com> | 2006-03-30 10:53:17 (GMT) |
---|---|---|
committer | Anthony Baxter <anthonybaxter@gmail.com> | 2006-03-30 10:53:17 (GMT) |
commit | 262c00a21e4fff85b8d4cad95256684fa219d5e2 (patch) | |
tree | 462941320bd222eb01e09afa4989c8245b55fb0a | |
parent | 80a5d017906f6d3111da619e686a49ecc938cb12 (diff) | |
download | cpython-262c00a21e4fff85b8d4cad95256684fa219d5e2.zip cpython-262c00a21e4fff85b8d4cad95256684fa219d5e2.tar.gz cpython-262c00a21e4fff85b8d4cad95256684fa219d5e2.tar.bz2 |
Fixed bug #1459029 - unicode reprs were double-escaped.
Backed out an old patch from 2000.
-rw-r--r-- | Misc/NEWS | 2 | ||||
-rw-r--r-- | Objects/object.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -12,6 +12,8 @@ What's New in Python 2.5 alpha 1? Core and builtins ----------------- +- Fixed bug #1459029 - unicode reprs were double-escaped. + - Patch #1396919: The system scope threads are reenabled on FreeBSD 5.4 and later versions. 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 @@ PyObject_Repr(PyObject *v) #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; |