diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-03-26 09:28:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 09:28:11 +0100 |
commit | 24fa0d871d51a7927027b7a1cc013d8681a53929 (patch) | |
tree | e2fbb7d2f84aad8c919f0997d7e063660be6e3ea /editor/SCsub | |
parent | fafff6b37922b27d1f573f36220a6b9d91a8ea33 (diff) | |
parent | 3d2dd79ecd2c8456ba9401f6b12333d01f61e13e (diff) |
Merge pull request #37294 from akien-mga/scons-drop-python2
SCons: Drop support for Python 2
Diffstat (limited to 'editor/SCsub')
-rw-r--r-- | editor/SCsub | 5 |
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) |