summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 6d330cf..58354c6 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -920,7 +920,7 @@ parsestr(s)
return NULL;
}
}
- if (unicode) {
+ if (unicode || Py_UnicodeFlag) {
if (rawmode)
return PyUnicode_DecodeRawUnicodeEscape(
s, len, NULL);