Commit ad9744a6 authored by Guido van Rossum's avatar Guido van Rossum

Fix a bug in rendering of \\ by repr() -- it rendered as \\\ instead

of \\.
parent e4874aea
......@@ -1758,6 +1758,7 @@ PyObject *unicodeescape_string(const Py_UNICODE *s,
(ch == (Py_UNICODE) PyString_AS_STRING(repr)[1] || ch == '\\')) {
*p++ = '\\';
*p++ = (char) ch;
continue;
}
#ifdef Py_UNICODE_WIDE
......
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