diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-03-09 14:29:24 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-03-09 14:29:24 -0600 |
commit | d9fa40f2df44d775e82332577d44de402b23611f (patch) | |
tree | f9f95b4d52fbe79a9cd1ca1b0107b14cb7c9e45b /core/input/input_builders.py | |
parent | f28964805e44a5c068ce8fd9d1e00697fcd922dc (diff) | |
download | redot-engine-d9fa40f2df44d775e82332577d44de402b23611f.tar.gz |
Enforce `\n` eol for Python writes
• Ensure utf-8 encoding if previously unspecified
Diffstat (limited to 'core/input/input_builders.py')
-rw-r--r-- | core/input/input_builders.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/input/input_builders.py b/core/input/input_builders.py index 94c566493e..71238d6003 100644 --- a/core/input/input_builders.py +++ b/core/input/input_builders.py @@ -9,7 +9,7 @@ from collections import OrderedDict def make_default_controller_mappings(target, source, env): dst = target[0] - g = open(dst, "w") + g = open(dst, "w", encoding="utf-8", newline="\n") g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n") g.write('#include "core/typedefs.h"\n') |