commit | ad9744a67abb619fa1ce331d9e0314de05c7345e | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Sep 21 15:38:17 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Sep 21 15:38:17 2001 +0000 |
tree | 6c82d2f86a6e59d38c62d28bccdef8271755c986 | |
parent | e4874aeab0f447d777d54ef4fcdc263f5f80ae21 [diff] |
Fix a bug in rendering of \\ by repr() -- it rendered as \\\ instead of \\.
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index c8c07a6..df8592d 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -1758,6 +1758,7 @@ (ch == (Py_UNICODE) PyString_AS_STRING(repr)[1] || ch == '\\')) { *p++ = '\\'; *p++ = (char) ch; + continue; } #ifdef Py_UNICODE_WIDE