From ad9744a67abb619fa1ce331d9e0314de05c7345e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 21 Sep 2001 15:38:17 +0000 Subject: [PATCH] Fix a bug in rendering of \\ by repr() -- it rendered as \\\ instead of \\. --- Objects/unicodeobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index c8c07a613b1..df8592d55e8 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