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):
def analyse_types(self, env):
self.initialized_check = env.directives['initializedcheck']
if self.entry is None:
self.entry = env.lookup(self.name)
if not self.entry:
self.entry = env.declare_builtin(self.name, self.pos)
if self.entry and self.entry.is_builtin and self.entry.is_const:
entry = self.entry
if entry is None:
entry = env.lookup(self.name)
if not entry:
entry = env.declare_builtin(self.name, self.pos)
if entry and entry.is_builtin and entry.is_const:
self.is_literal = True
if not self.entry:
if not entry:
self.type = PyrexTypes.error_type
return self
entry = self.entry
if entry:
self.entry = entry
entry.used = 1
if entry.type.is_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