commit | fdc8bdb67b7a82980d5844cb86b6eb9b48d4ec38 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon May 01 17:54:56 2000 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon May 01 17:54:56 2000 +0000 |
tree | f1b418af5668c2f48c28b8c0cb83b33a5dbec355 | |
parent | c15a9a1f98544d3258e656503f7cbcefcda92f43 [diff] |
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"...").
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 @@ return NULL; } } - if (unicode) { + if (unicode || Py_UnicodeFlag) { if (rawmode) return PyUnicode_DecodeRawUnicodeEscape( s, len, NULL);