Skip to content

Commit 3add9ce

Browse files
author
wangweichen
committed
fix open encoding error.
1 parent 4ddd1a3 commit 3add9ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitdb/db/ref.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _update_dbs_from_ref_file(self):
4141
# try to get as many as possible, don't fail if some are unavailable
4242
ref_paths = list()
4343
try:
44-
with open(self._ref_file, 'r') as f:
44+
with open(self._ref_file, 'r', encoding="utf-8") as f:
4545
ref_paths = [l.strip() for l in f]
4646
except (OSError, IOError):
4747
pass

0 commit comments

Comments
 (0)