Commit e76197d7 authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Fixed problem with unicode temporary strings

parent d2a99890
......@@ -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_"):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment