Commit e8d4299f authored by Stefan Behnel's avatar Stefan Behnel

fix compile crash

parent 30cf86bc
......@@ -6,7 +6,7 @@
import cython
cython.declare(re=object, Naming=object, Options=object, StringEncoding=object,
Utils=object, SourceDescriptor=object, StringIOTree=object,
DebugFlags=object, none_or_sub=object)
DebugFlags=object, none_or_sub=object, basestring=object)
import re
import Naming
......@@ -19,9 +19,9 @@ import DebugFlags
from Cython.Utils import none_or_sub
try:
basestring
except NameError:
basestring = str
from __builtin__ import basestring
except ImportError:
from builtins import str as basestring
class UtilityCode(object):
# Stores utility code to add during code generation.
......
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