Commit 9271133a authored by Stefan Behnel's avatar Stefan Behnel

slight scanner C code simplification

parent 90cfb960
......@@ -360,10 +360,10 @@ class PyrexScanner(Scanner):
if sy == IDENT:
if systring in self.keywords:
if systring == u'print' and print_function in self.context.future_directives:
self.keywords.remove('print')
self.keywords.discard('print')
systring = EncodedString(systring)
elif systring == u'exec' and self.context.language_level >= 3:
self.keywords.remove('exec')
self.keywords.discard('exec')
systring = EncodedString(systring)
else:
sy = systring
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment