From: Guido van Rossum Date: Fri, 21 Sep 2001 15:38:17 +0000 (+0000) Subject: Fix a bug in rendering of \\ by repr() -- it rendered as \\\ instead X-Git-Tag: v2.2.1c1~1696 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad9744a67abb619fa1ce331d9e0314de05c7345e;p=python Fix a bug in rendering of \\ by repr() -- it rendered as \\\ instead of \\. --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index c8c07a613b..df8592d55e 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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