Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1c3dc77

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

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎blurb/blurb.py

Copy file name to clipboardExpand all lines: blurb/blurb.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.