Commit 185235d2 authored by Stefan Behnel's avatar Stefan Behnel

work around for earlier compile error

parent 9de47b5e
...@@ -634,9 +634,10 @@ class ComprehensionTransform(VisitorTransform): ...@@ -634,9 +634,10 @@ class ComprehensionTransform(VisitorTransform):
return node return node
def visit_NameNode(self, node): def visit_NameNode(self, node):
replacement = self.comprehension_targets.get(node.entry.cname) if node.entry:
if replacement is not None: replacement = self.comprehension_targets.get(node.entry.cname)
return replacement if replacement is not None:
return replacement
return node return node
......
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