summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 8b91894..d7e3b36 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -3187,7 +3187,7 @@ parsestr(const node *n, const char *encoding, int *bytesmode)
}
}
#ifdef Py_USING_UNICODE
- if (unicode || Py_UnicodeFlag) {
+ if (!*bytesmode) {
return decode_unicode(s, len, rawmode, encoding);
}
#endif