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):
return node
def visit_NameNode(self, node):
replacement = self.comprehension_targets.get(node.entry.cname)
if replacement is not None:
return replacement
if node.entry:
replacement = self.comprehension_targets.get(node.entry.cname)
if replacement is not None:
return replacement
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