diff options
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/SCons/compat/_scons_shlex.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/engine/SCons/compat/_scons_shlex.py b/src/engine/SCons/compat/_scons_shlex.py index 6ed39cf..2a748ff 100644 --- a/src/engine/SCons/compat/_scons_shlex.py +++ b/src/engine/SCons/compat/_scons_shlex.py @@ -23,14 +23,13 @@ class deque: return self.data.pop(0) try: - basestring + # exec() the assignment to avoid the basestring fixer. + exec('_basestring = basestring') except NameError: import types - def is_basestring(s): - return isinstance(s, str) -else: - def is_basestring(s): - return isinstance(s, basestring) + _basestring = str +def is_basestring(s): + return isinstance(s, _basestring) # Use the "imp" module to protect the imports below from fixers. try: |