Kaydet (Commit) 262c00a2 authored tarafından Anthony Baxter's avatar Anthony Baxter

Fixed bug #1459029 - unicode reprs were double-escaped.

Backed out an old patch from 2000.
üst 80a5d017
......@@ -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.
......
......@@ -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;
......
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