summaryrefslogtreecommitdiff
path: root/platform/SCsub
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-03-26 09:28:11 +0100
committerGitHub <noreply@github.com>2020-03-26 09:28:11 +0100
commit24fa0d871d51a7927027b7a1cc013d8681a53929 (patch)
treee2fbb7d2f84aad8c919f0997d7e063660be6e3ea /platform/SCsub
parentfafff6b37922b27d1f573f36220a6b9d91a8ea33 (diff)
parent3d2dd79ecd2c8456ba9401f6b12333d01f61e13e (diff)
Merge pull request #37294 from akien-mga/scons-drop-python2
SCons: Drop support for Python 2
Diffstat (limited to 'platform/SCsub')
-rw-r--r--platform/SCsub4
1 files changed, 1 insertions, 3 deletions
diff --git a/platform/SCsub b/platform/SCsub
index 38bab59d74..40cacce674 100644
--- a/platform/SCsub
+++ b/platform/SCsub
@@ -1,7 +1,5 @@
#!/usr/bin/env python
-from compat import open_utf8
-
Import('env')
env.platform_sources = []
@@ -21,7 +19,7 @@ reg_apis += '}\n\n'
unreg_apis += '}\n'
# NOTE: It is safe to generate this file here, since this is still execute serially
-with open_utf8('register_platform_apis.gen.cpp', 'w') as f:
+with open('register_platform_apis.gen.cpp', 'w', encoding="utf-8") as f:
f.write(reg_apis_inc)
f.write(reg_apis)
f.write(unreg_apis)