summaryrefslogtreecommitdiff
path: root/editor/SCsub
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 /editor/SCsub
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 'editor/SCsub')
-rw-r--r--editor/SCsub5
1 files changed, 2 insertions, 3 deletions
diff --git a/editor/SCsub b/editor/SCsub
index 6e8679b770..61562d70d3 100644
--- a/editor/SCsub
+++ b/editor/SCsub
@@ -7,13 +7,12 @@ env.editor_sources = []
import os
import os.path
from platform_methods import run_in_subprocess
-from compat import open_utf8
import editor_builders
def _make_doc_data_class_path(to_path):
# NOTE: It is safe to generate this file here, since this is still executed serially
- g = open_utf8(os.path.join(to_path, "doc_data_class_path.gen.h"), "w")
+ g = open(os.path.join(to_path, "doc_data_class_path.gen.h"), "w", encoding="utf-8")
g.write("static const int _doc_data_class_path_count = " + str(len(env.doc_class_path)) + ";\n")
g.write("struct _DocDataClassPath { const char* name; const char* path; };\n")
@@ -37,7 +36,7 @@ if env['tools']:
reg_exporters += '}\n'
# NOTE: It is safe to generate this file here, since this is still executed serially
- with open_utf8("register_exporters.gen.cpp", "w") as f:
+ with open("register_exporters.gen.cpp", "w", encoding="utf-8") as f:
f.write(reg_exporters_inc)
f.write(reg_exporters)