Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fdc8bdb

Browse files
committed
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"...").
1 parent c15a9a1 commit fdc8bdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ parsestr(s)
920920
return NULL;
921921
}
922922
}
923-
if (unicode) {
923+
if (unicode || Py_UnicodeFlag) {
924924
if (rawmode)
925925
return PyUnicode_DecodeRawUnicodeEscape(
926926
s, len, NULL);

0 commit comments

Comments
 (0)