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