Skip to content

Commit 1c3dc77

Browse files
authored
Use UTF-8 to open README (#484)
1 parent 7e2939a commit 1c3dc77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

blurb/blurb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ def chdir_to_repo_root():
724724
def test_first_line(filename, test):
725725
if not os.path.exists(filename):
726726
return False
727-
with open(filename) as file:
727+
with open(filename, encoding="utf-8") as file:
728728
lines = file.read().split('\n')
729729
if not (lines and test(lines[0])):
730730
return False

0 commit comments

Comments
 (0)