Commit 91ee421e authored by Stefan Behnel's avatar Stefan Behnel

Clean up some code to avoid visual clutter.

parent 57c404e6
...@@ -1918,17 +1918,17 @@ class NameNode(AtomicExprNode): ...@@ -1918,17 +1918,17 @@ class NameNode(AtomicExprNode):
def analyse_types(self, env): def analyse_types(self, env):
self.initialized_check = env.directives['initializedcheck'] self.initialized_check = env.directives['initializedcheck']
if self.entry is None: entry = self.entry
self.entry = env.lookup(self.name) if entry is None:
if not self.entry: entry = env.lookup(self.name)
self.entry = env.declare_builtin(self.name, self.pos) if not entry:
if self.entry and self.entry.is_builtin and self.entry.is_const: entry = env.declare_builtin(self.name, self.pos)
if entry and entry.is_builtin and entry.is_const:
self.is_literal = True self.is_literal = True
if not self.entry: if not entry:
self.type = PyrexTypes.error_type self.type = PyrexTypes.error_type
return self return self
entry = self.entry self.entry = entry
if entry:
entry.used = 1 entry.used = 1
if entry.type.is_buffer: if entry.type.is_buffer:
from . import Buffer from . import Buffer
......
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