From: Dag Sverre Seljebotn Date: Thu, 19 Jun 2008 02:00:27 +0000 (-0700) Subject: Fixed problem with unicode temporary strings X-Git-Tag: 0.9.8.1~49^2~124 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=e76197d7f812b9b741e4fc286cc9dea8d347f535;p=cython.git Fixed problem with unicode temporary strings --- 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_"):