From: Dag Sverre Seljebotn Date: Fri, 13 Feb 2009 18:04:14 +0000 (+0100) Subject: Fix problem with withstat fix X-Git-Tag: 0.11.rc~81 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=316ac8b471a23512a0dd633e1c4c877f7fe4e7de;p=cython.git Fix problem with withstat fix --- diff --git a/Cython/Compiler/TreeFragment.py b/Cython/Compiler/TreeFragment.py index 27b43f70..47e98b7f 100644 --- a/Cython/Compiler/TreeFragment.py +++ b/Cython/Compiler/TreeFragment.py @@ -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: