summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-05-01 17:54:56 (GMT)
committerGuido van Rossum <guido@python.org>2000-05-01 17:54:56 (GMT)
commitfdc8bdb67b7a82980d5844cb86b6eb9b48d4ec38 (patch)
treef1b418af5668c2f48c28b8c0cb83b33a5dbec355 /Python/compile.c
parentc15a9a1f98544d3258e656503f7cbcefcda92f43 (diff)
downloadcpython-fdc8bdb67b7a82980d5844cb86b6eb9b48d4ec38.zip
cpython-fdc8bdb67b7a82980d5844cb86b6eb9b48d4ec38.tar.gz
cpython-fdc8bdb67b7a82980d5844cb86b6eb9b48d4ec38.tar.bz2
Marc-Andre Lemburg:
Support for the new -U command line option option: with the option enabled the Python compiler interprets all "..." strings as u"..." (same with r"..." and ur"...").
Diffstat (limited to 'Python/compile.c')
-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);