From: Guido van Rossum Date: Mon, 1 May 2000 17:54:56 +0000 (+0000) Subject: Marc-Andre Lemburg: X-Git-Tag: v2.0b1~1893 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fdc8bdb67b7a82980d5844cb86b6eb9b48d4ec38;p=thirdparty%2FPython%2Fcpython.git 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 6d330cf5380f..58354c6b0a63 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);