Fixed problem with unicode temporary strings
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Thu, 19 Jun 2008 02:00:27 +0000 (19:00 -0700)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Thu, 19 Jun 2008 02:00:27 +0000 (19:00 -0700)
Cython/Compiler/Visitor.py

index 44ad2ad794a7dc57c643db7c1c741e1c14d0e6cd..7dcfcf2d20e15b07929484e3082a34530c545847 100644 (file)
@@ -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_"):