Fix for bug #485951: repr diff between string and unicode.

This commit is contained in:
Marc-André Lemburg 2001-11-28 12:56:20 +00:00
parent d4c0a9c59b
commit 11326de657
1 changed files with 1 additions and 1 deletions

View File

@ -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];