reduced overhead in the scanner
authorStefan Behnel <scoder@users.berlios.de>
Mon, 15 Nov 2010 09:52:33 +0000 (10:52 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 15 Nov 2010 09:52:33 +0000 (10:52 +0100)
Cython/Compiler/Scanning.py

index 535333abaf2c11c4268bfd70765afa3345c9ed55..dab1d6b7764692119486914170dc91fd59d60d33 100644 (file)
@@ -358,10 +358,10 @@ class PyrexScanner(Scanner):
             self.error("Unrecognized character")
         if sy == IDENT:
             if systring in self.keywords:
-                if systring == 'print' and print_function in self.context.future_directives:
+                if systring == u'print' and print_function in self.context.future_directives:
                     self.keywords.remove('print')
                     systring = EncodedString(systring)
-                elif systring == 'exec' and self.context.language_level >= 3:
+                elif systring == u'exec' and self.context.language_level >= 3:
                     self.keywords.remove('exec')
                     systring = EncodedString(systring)
                 else: