Commit e8d4299f authored by Stefan Behnel's avatar Stefan Behnel

fix compile crash

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