Commit 37690679 authored by Stefan Behnel's avatar Stefan Behnel

AttributeNode.as_cython_attribute(): make method return value explicit

parent 6ff3b8e2
...@@ -3557,6 +3557,7 @@ class AttributeNode(ExprNode): ...@@ -3557,6 +3557,7 @@ class AttributeNode(ExprNode):
cy = self.obj.as_cython_attribute() cy = self.obj.as_cython_attribute()
if cy: if cy:
return "%s.%s" % (cy, self.attribute) return "%s.%s" % (cy, self.attribute)
return None
def coerce_to(self, dst_type, env): def coerce_to(self, dst_type, env):
# If coercing to a generic pyobject and this is a cpdef function # If coercing to a generic pyobject and this is a cpdef function
......
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