]> granicus.if.org Git - python/commitdiff
Fix a bug in rendering of \\ by repr() -- it rendered as \\\ instead
authorGuido van Rossum <guido@python.org>
Fri, 21 Sep 2001 15:38:17 +0000 (15:38 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 21 Sep 2001 15:38:17 +0000 (15:38 +0000)
of \\.

Objects/unicodeobject.c

index c8c07a613b1ce28bc0f9dcaccfd7ece3f0f43cf3..df8592d55e89b9ab43a0ee615ada345cfb2e4253 100644 (file)
@@ -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