From 03b2c293d2131834391e1b3c5852a08be90f6396 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 15 Nov 2010 10:52:33 +0100 Subject: [PATCH] reduced overhead in the scanner --- Cython/Compiler/Scanning.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.26.2