bytebeat_compiler.py: save file in UTF-8 w/o BOM
This commit is contained in:
parent
b50915aed6
commit
51236ab9c3
@ -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 == "-":
|
||||
|
Loading…
Reference in New Issue
Block a user