summaryrefslogtreecommitdiffstats
path: root/misc/scripts/dotnet_format.py
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-03-09 14:29:24 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-03-09 14:29:24 -0600
commitd9fa40f2df44d775e82332577d44de402b23611f (patch)
treef9f95b4d52fbe79a9cd1ca1b0107b14cb7c9e45b /misc/scripts/dotnet_format.py
parentf28964805e44a5c068ce8fd9d1e00697fcd922dc (diff)
downloadredot-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.py2
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.