From 316ac8b471a23512a0dd633e1c4c877f7fe4e7de Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Fri, 13 Feb 2009 19:04:14 +0100 Subject: [PATCH] Fix problem with withstat fix --- Cython/Compiler/TreeFragment.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: -- 2.26.2