summaryrefslogtreecommitdiff
path: root/modules/freetype
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-03-25 14:36:03 +0100
committerRémi Verschelde <rverschelde@gmail.com>2020-03-25 15:25:37 +0100
commit3d2dd79ecd2c8456ba9401f6b12333d01f61e13e (patch)
tree945849b824e902a49bb3d7acb4bf13f76a1850f8 /modules/freetype
parent35e700e931f565aa37040055126fa61f02424ae0 (diff)
SCons: Drop support for Python 2
We now require SCons 3.0+ (first version with Python 3 support), and we set min required Python 3 version to 3.5 (3.4 and earlier are EOL).
Diffstat (limited to 'modules/freetype')
-rw-r--r--modules/freetype/SCsub4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/freetype/SCsub b/modules/freetype/SCsub
index 7b66aa1c76..9e1853c4cd 100644
--- a/modules/freetype/SCsub
+++ b/modules/freetype/SCsub
@@ -3,8 +3,6 @@
Import('env')
Import('env_modules')
-from compat import isbasestring
-
env_freetype = env_modules.Clone()
# Thirdparty source files
@@ -93,7 +91,7 @@ if env['builtin_freetype']:
# and then plain strings for system library. We insert between the two.
inserted = False
for idx, linklib in enumerate(env["LIBS"]):
- if isbasestring(linklib): # first system lib such as "X11", otherwise SCons lib object
+ if isinstance(linklib, (str, bytes)): # first system lib such as "X11", otherwise SCons lib object
env["LIBS"].insert(idx, lib)
inserted = True
break