From: Stefan Behnel Date: Wed, 2 Jun 2010 06:34:23 +0000 (+0200) Subject: fix another temp var name encoding problem - seems to fix ticket #536 X-Git-Tag: 0.13.beta0~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=caf82802399b0618fda99a83eaac2c26b595d3c2;p=cython.git fix another temp var name encoding problem - seems to fix ticket #536 --- 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)