Commit 95768141 authored by Stefan Behnel's avatar Stefan Behnel

minor code cleanup

parent e6bce814
...@@ -6474,8 +6474,8 @@ class AttributeNode(ExprNode): ...@@ -6474,8 +6474,8 @@ class AttributeNode(ExprNode):
self.op = "." self.op = "."
if obj_type.has_attributes: if obj_type.has_attributes:
if obj_type.attributes_known(): if obj_type.attributes_known():
if (obj_type.is_memoryviewslice and not entry = obj_type.scope.lookup_here(self.attribute)
obj_type.scope.lookup_here(self.attribute)): if obj_type.is_memoryviewslice and not entry:
if self.attribute == 'T': if self.attribute == 'T':
self.is_memslice_transpose = True self.is_memslice_transpose = True
self.is_temp = True self.is_temp = True
...@@ -6484,7 +6484,7 @@ class AttributeNode(ExprNode): ...@@ -6484,7 +6484,7 @@ class AttributeNode(ExprNode):
return return
else: else:
obj_type.declare_attribute(self.attribute, env, self.pos) obj_type.declare_attribute(self.attribute, env, self.pos)
entry = obj_type.scope.lookup_here(self.attribute) entry = obj_type.scope.lookup_here(self.attribute)
if entry and entry.is_member: if entry and entry.is_member:
entry = None entry = None
else: else:
......
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