From caf82802399b0618fda99a83eaac2c26b595d3c2 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 2 Jun 2010 08:34:23 +0200 Subject: [PATCH] fix another temp var name encoding problem - seems to fix ticket #536 --- Cython/Compiler/ParseTreeTransforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index adb41c3c..8d66b7d1 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -863,7 +863,7 @@ class WithTransform(CythonTransform, SkipDeclarations): def visit_WithStatNode(self, node): # TODO: Cleanup badly needed TemplateTransform.temp_name_counter += 1 - handle = "__tmpvar_%d" % TemplateTransform.temp_name_counter + handle = EncodedString("__tmpvar_%d" % TemplateTransform.temp_name_counter) self.visitchildren(node, ['body']) excinfo_temp = NameNode(node.pos, name=handle)#TempHandle(Builtin.tuple_type) -- 2.26.2