Skip to content

Commit

Permalink
Added UTF-8 encoding when opening a file
Browse files Browse the repository at this point in the history
  • Loading branch information
PandH4cker authored and youknowone committed Feb 17, 2023
1 parent a0c34da commit a4629db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whats_left.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def remove_one_indent(s):
compare_src = inspect.getsourcelines(compare)[0][1:]
output += "".join(remove_one_indent(line) for line in compare_src)

with open(GENERATED_FILE, "w") as f:
with open(GENERATED_FILE, "w", encoding='utf-8') as f:
f.write(output + "\n")


Expand Down

0 comments on commit a4629db

Please sign in to comment.