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 /misc/scripts/dotnet_format.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 'misc/scripts/dotnet_format.py')
-rw-r--r-- | misc/scripts/dotnet_format.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/scripts/dotnet_format.py b/misc/scripts/dotnet_format.py index de414bbe30..83265be7c5 100644 --- a/misc/scripts/dotnet_format.py +++ b/misc/scripts/dotnet_format.py @@ -10,7 +10,7 @@ for path in [ "modules/mono/SdkPackageVersions.props", ]: os.makedirs(os.path.dirname(path), exist_ok=True) - with open(path, "w") as f: + with open(path, "w", encoding="utf-8", newline="\n") as f: f.write("<Project />") # Avoid importing GeneratedIncludes.props. |