Skip to content

Commit a4629db

Browse files
PandH4ckeryouknowone
authored andcommitted
Added UTF-8 encoding when opening a file
1 parent a0c34da commit a4629db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

whats_left.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def remove_one_indent(s):
441441
compare_src = inspect.getsourcelines(compare)[0][1:]
442442
output += "".join(remove_one_indent(line) for line in compare_src)
443443

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

447447

0 commit comments

Comments
 (0)