Skip to content

Commit

Permalink
Fix encoding bug when formatting files
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzay-G committed Feb 8, 2021
1 parent f08a8e2 commit 57ca3b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archivy/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def format_file(path: str):
format_file(filename)

else:
new_file = path.open()
new_file = path.open("r", encoding="utf-8")
file_contents = new_file.read()
new_file.close()
try:
Expand Down

0 comments on commit 57ca3b8

Please sign in to comment.