diff Objects/unicodeobject.c @ 20018:8aa1ada33f64 legacy-trunk

Fix a bug in rendering of \\ by repr() -- it rendered as \\\ instead of \\.
author Guido van Rossum <guido@python.org>
date Fri, 21 Sep 2001 15:38:17 +0000
parents 56ffee1eeeec
children 2983b54256c7
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Fri Sep 21 15:36:41 2001 +0000
+++ b/Objects/unicodeobject.c	Fri Sep 21 15:38:17 2001 +0000
@@ -1758,6 +1758,7 @@
 	    (ch == (Py_UNICODE) PyString_AS_STRING(repr)[1] || ch == '\\')) {
             *p++ = '\\';
             *p++ = (char) ch;
+	    continue;
         } 
 
 #ifdef Py_UNICODE_WIDE