From: Stefan Behnel Date: Mon, 15 Nov 2010 09:52:33 +0000 (+0100) Subject: reduced overhead in the scanner X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=03b2c293d2131834391e1b3c5852a08be90f6396;p=cython.git reduced overhead in the scanner --- diff --git a/Cython/Compiler/Scanning.py b/Cython/Compiler/Scanning.py index 535333ab..dab1d6b7 100644 --- a/Cython/Compiler/Scanning.py +++ b/Cython/Compiler/Scanning.py @@ -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: