]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Marc-Andre Lemburg:
authorGuido van Rossum <guido@python.org>
Mon, 1 May 2000 17:54:56 +0000 (17:54 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 1 May 2000 17:54:56 +0000 (17:54 +0000)
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"...").

Python/compile.c

index 6d330cf5380fa21ac5e53b0e02a6b938d7ff5645..58354c6b0a639cfdc83c2cdea8800e960465b546 100644 (file)
@@ -920,7 +920,7 @@ parsestr(s)
                        return NULL;
                }
        }
-       if (unicode) {
+       if (unicode || Py_UnicodeFlag) {
                if (rawmode)
                        return PyUnicode_DecodeRawUnicodeEscape(
                                s, len, NULL);