Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added UTF-8 encoding when opening a file
  • Loading branch information
PandH4cker authored and youknowone committed Feb 17, 2023
commit a4629db52064b7380415985fc12b362b3665c29e
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