From e76197d7f812b9b741e4fc286cc9dea8d347f535 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Wed, 18 Jun 2008 19:00:27 -0700 Subject: [PATCH] Fixed problem with unicode temporary strings --- Cython/Compiler/Visitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/Visitor.py b/Cython/Compiler/Visitor.py index 44ad2ad7..7dcfcf2d 100644 --- a/Cython/Compiler/Visitor.py +++ b/Cython/Compiler/Visitor.py @@ -4,6 +4,7 @@ import Nodes import ExprNodes import inspect +from Cython.Utils import EncodedString class BasicVisitor(object): """A generic visitor base class which can be used for visiting any kind of object.""" @@ -170,7 +171,7 @@ tmpnamectr = 0 def temp_name_handle(description): global tmpnamectr tmpnamectr += 1 - return u"__cyt_%d_%s" % (tmpnamectr, description) + return EncodedString(u"__cyt_%d_%s" % (tmpnamectr, description)) def get_temp_name_handle_desc(handle): if not handle.startswith(u"__cyt_"): -- 2.26.2