summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-21 15:38:17 (GMT)
committerGuido van Rossum <guido@python.org>2001-09-21 15:38:17 (GMT)
commitad9744a67abb619fa1ce331d9e0314de05c7345e (patch)
tree6c82d2f86a6e59d38c62d28bccdef8271755c986
parente4874aeab0f447d777d54ef4fcdc263f5f80ae21 (diff)
downloadcpython-ad9744a67abb619fa1ce331d9e0314de05c7345e.zip
cpython-ad9744a67abb619fa1ce331d9e0314de05c7345e.tar.gz
cpython-ad9744a67abb619fa1ce331d9e0314de05c7345e.tar.bz2
Fix a bug in rendering of \\ by repr() -- it rendered as \\\ instead
of \\.
-rw-r--r--Objects/unicodeobject.c1
1 files changed, 1 insertions, 0 deletions
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 @@ 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