diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-09 22:20:23 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-09 22:20:23 +0100 |
commit | 0ace0a129284ffc6646b199699c1607a316fcec0 (patch) | |
tree | 82c37d0f9c972396d0031fc757a33fc35576af5d /platform | |
parent | 7d6ae138fa7064270ee61fed747a11780c2f1c0f (diff) | |
parent | d9fa40f2df44d775e82332577d44de402b23611f (diff) | |
download | redot-engine-0ace0a129284ffc6646b199699c1607a316fcec0.tar.gz |
Merge pull request #89333 from Repiteo/enforce-eol-python
Enforce `\n` eol for Python writes
Diffstat (limited to 'platform')
-rw-r--r-- | platform/SCsub | 2 | ||||
-rw-r--r-- | platform/macos/SCsub | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/SCsub b/platform/SCsub index 5194a19518..e432cebd48 100644 --- a/platform/SCsub +++ b/platform/SCsub @@ -19,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("register_platform_apis.gen.cpp", "w", encoding="utf-8") as f: +with open("register_platform_apis.gen.cpp", "w", encoding="utf-8", newline="\n") as f: f.write(reg_apis_inc) f.write(reg_apis) f.write(unreg_apis) diff --git a/platform/macos/SCsub b/platform/macos/SCsub index 9083c2a288..135779582d 100644 --- a/platform/macos/SCsub +++ b/platform/macos/SCsub @@ -36,7 +36,7 @@ def generate_bundle(target, source, env): version = get_build_version(False) short_version = get_build_version(True) with open(Dir("#misc/dist/macos").abspath + "/editor_info_plist.template", "rt") as fin: - with open(app_dir + "/Contents/Info.plist", "wt") as fout: + with open(app_dir + "/Contents/Info.plist", "wt", encoding="utf-8", newline="\n") as fout: for line in fin: line = line.replace("$version", version) line = line.replace("$short_version", short_version) |