1
0

bytebeat_compiler.py: save file in UTF-8 w/o BOM

This commit is contained in:
Intel A80486DX2-66 2024-01-09 15:54:00 +03:00
parent b50915aed6
commit 51236ab9c3
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -48,7 +48,7 @@ def read_file(path: str) -> str:
return open(path, "r", encoding="utf-8-sig").read()
def rewrite_file(path: str, content: str):
return open(path, "w", encoding="utf-8-sig").write(content)
return open(path, "w", encoding="utf-8").write(content)
def read_from_file_or_stdin(path: str) -> str:
if path == "-":