summaryrefslogtreecommitdiffstats
path: root/glsl_builders.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-03-09 22:20:23 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-03-09 22:20:23 +0100
commit0ace0a129284ffc6646b199699c1607a316fcec0 (patch)
tree82c37d0f9c972396d0031fc757a33fc35576af5d /glsl_builders.py
parent7d6ae138fa7064270ee61fed747a11780c2f1c0f (diff)
parentd9fa40f2df44d775e82332577d44de402b23611f (diff)
downloadredot-engine-0ace0a129284ffc6646b199699c1607a316fcec0.tar.gz
Merge pull request #89333 from Repiteo/enforce-eol-python
Enforce `\n` eol for Python writes
Diffstat (limited to 'glsl_builders.py')
-rw-r--r--glsl_builders.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glsl_builders.py b/glsl_builders.py
index ce52ec247d..406677ac9e 100644
--- a/glsl_builders.py
+++ b/glsl_builders.py
@@ -165,7 +165,7 @@ public:
#endif
"""
- with open(out_file, "w") as fd:
+ with open(out_file, "w", encoding="utf-8", newline="\n") as fd:
fd.write(shader_template)
@@ -224,7 +224,7 @@ static const char {out_file_base}[] = {{
#endif
"""
- with open(out_file, "w") as f:
+ with open(out_file, "w", encoding="utf-8", newline="\n") as f:
f.write(shader_template)