summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
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];