commit | 11326de657e73d320f10150875cdbaea93d0680e | [log] [tgz] |
---|---|---|
author | Marc-André Lemburg <mal@egenix.com> | Wed Nov 28 12:56:20 2001 +0000 |
committer | Marc-André Lemburg <mal@egenix.com> | Wed Nov 28 12:56:20 2001 +0000 |
tree | 39d702d7ff153511365fc97660b8c4f099562754 | |
parent | d4c0a9c59b399bfa0d36030663f78aa18a68e051 [diff] |
Fix for bug #485951: repr diff between string and unicode.
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 @@ } /* 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];