Commit 316ac8b4 authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Fix problem with withstat fix

parent c3d65de3
......@@ -160,8 +160,7 @@ class TemplateTransform(VisitorTransform):
def visit_NameNode(self, node):
temphandle = self.tempmap.get(node.name)
if temphandle:
node.name = temphandle
return node
return NameNode(pos=node.pos, name=temphandle)
# Replace name with temporary
#return temphandle.ref(self.get_pos(node))
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