diff options
author | Guido van Rossum <guido@python.org> | 2001-09-21 15:38:17 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-09-21 15:38:17 (GMT) |
commit | ad9744a67abb619fa1ce331d9e0314de05c7345e (patch) | |
tree | 6c82d2f86a6e59d38c62d28bccdef8271755c986 /Objects/unicodeobject.c | |
parent | e4874aeab0f447d777d54ef4fcdc263f5f80ae21 (diff) | |
download | cpython-ad9744a67abb619fa1ce331d9e0314de05c7345e.zip cpython-ad9744a67abb619fa1ce331d9e0314de05c7345e.tar.gz cpython-ad9744a67abb619fa1ce331d9e0314de05c7345e.tar.bz2 |
Fix a bug in rendering of \\ by repr() -- it rendered as \\\ instead
of \\.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 1 |
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 |