Commit 253cf82d authored by Stefan Behnel's avatar Stefan Behnel

Reformat code.

parent 3732784c
...@@ -2014,14 +2014,13 @@ class NameNode(AtomicExprNode): ...@@ -2014,14 +2014,13 @@ class NameNode(AtomicExprNode):
py_entry.is_pyglobal = True py_entry.is_pyglobal = True
py_entry.scope = self.entry.scope py_entry.scope = self.entry.scope
self.entry = py_entry self.entry = py_entry
elif not (entry.is_const or entry.is_variable elif not (entry.is_const or entry.is_variable or
or entry.is_builtin or entry.is_cfunction entry.is_builtin or entry.is_cfunction or
or entry.is_cpp_class): entry.is_cpp_class):
if self.entry.as_variable: if self.entry.as_variable:
self.entry = self.entry.as_variable self.entry = self.entry.as_variable
elif not self.is_cython_module: elif not self.is_cython_module:
error(self.pos, error(self.pos, "'%s' is not a constant, variable or function identifier" % self.name)
"'%s' is not a constant, variable or function identifier" % self.name)
def is_cimported_module_without_shadow(self, env): def is_cimported_module_without_shadow(self, env):
if self.is_cython_module or self.cython_attribute: if self.is_cython_module or self.cython_attribute:
......
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