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"...").
This commit is contained in:
Guido van Rossum 2000-05-01 17:54:56 +00:00
parent c15a9a1f98
commit fdc8bdb67b
1 changed files with 1 additions and 1 deletions

View File

@ -920,7 +920,7 @@ parsestr(s)
return NULL;
}
}
if (unicode) {
if (unicode || Py_UnicodeFlag) {
if (rawmode)
return PyUnicode_DecodeRawUnicodeEscape(
s, len, NULL);