diff Python/compile.c @ 12538:859e500f0760 legacy-trunk

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"...").
author Guido van Rossum <guido@python.org>
date Mon, 01 May 2000 17:54:56 +0000
parents 0c28c9cabbda
children 1c7c2dd1beb1
line wrap: on
line diff
--- a/Python/compile.c	Mon May 01 17:54:33 2000 +0000
+++ b/Python/compile.c	Mon May 01 17:54:56 2000 +0000
@@ -920,7 +920,7 @@
 			return NULL;
 		}
 	}
-	if (unicode) {
+	if (unicode || Py_UnicodeFlag) {
 		if (rawmode)
 			return PyUnicode_DecodeRawUnicodeEscape(
 				s, len, NULL);