Commit c5ee57cf authored by Stefan Behnel's avatar Stefan Behnel

simplify some code

parent 90c2566a
...@@ -310,8 +310,7 @@ class PyrexScanner(Scanner): ...@@ -310,8 +310,7 @@ class PyrexScanner(Scanner):
self.compile_time_env = initial_compile_time_env() self.compile_time_env = initial_compile_time_env()
self.compile_time_eval = 1 self.compile_time_eval = 1
self.compile_time_expr = 0 self.compile_time_expr = 0
if (hasattr(context.options, 'compile_time_env') and if getattr(context.options, 'compile_time_env', None):
context.options.compile_time_env is not None):
self.compile_time_env.update(context.options.compile_time_env) self.compile_time_env.update(context.options.compile_time_env)
self.parse_comments = parse_comments self.parse_comments = parse_comments
self.source_encoding = source_encoding self.source_encoding = source_encoding
......
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