diff options
author | Marc-André Lemburg <mal@egenix.com> | 2001-11-28 12:56:20 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2001-11-28 12:56:20 (GMT) |
commit | 11326de657e73d320f10150875cdbaea93d0680e (patch) | |
tree | 39d702d7ff153511365fc97660b8c4f099562754 | |
parent | d4c0a9c59b399bfa0d36030663f78aa18a68e051 (diff) | |
download | cpython-11326de657e73d320f10150875cdbaea93d0680e.zip cpython-11326de657e73d320f10150875cdbaea93d0680e.tar.gz cpython-11326de657e73d320f10150875cdbaea93d0680e.tar.bz2 |
Fix for bug #485951: repr diff between string and unicode.
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 1420455..f793020 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1833,7 +1833,7 @@ PyObject *unicodeescape_string(const Py_UNICODE *s, } /* Map non-printable US ASCII to '\xhh' */ - else if (ch < ' ' || ch >= 128) { + else if (ch < ' ' || ch >= 0x7F) { *p++ = '\\'; *p++ = 'x'; *p++ = hexdigit[(ch >> 4) & 0x000F]; |