Enforce \n eol for Python writes
• Ensure utf-8 encoding if previously unspecified
This commit is contained in:
@ -85,7 +85,7 @@ def make_templates(target, source, env):
|
||||
|
||||
s.write("\n#endif\n")
|
||||
|
||||
with open(dst, "w") as f:
|
||||
with open(dst, "w", encoding="utf-8", newline="\n") as f:
|
||||
f.write(s.getvalue())
|
||||
|
||||
s.close()
|
||||
|
||||
Reference in New Issue
Block a user