We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3add9ce commit 5e0fea5Copy full SHA for 5e0fea5
gitdb/db/ref.py
@@ -2,6 +2,7 @@
2
#
3
# This module is part of GitDB and is released under
4
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
5
+import codecs
6
from gitdb.db.base import (
7
CompoundDB,
8
)
@@ -41,7 +42,7 @@ def _update_dbs_from_ref_file(self):
41
42
# try to get as many as possible, don't fail if some are unavailable
43
ref_paths = list()
44
try:
- with open(self._ref_file, 'r', encoding="utf-8") as f:
45
+ with codecs.open(self._ref_file, 'r', encoding="utf-8") as f:
46
ref_paths = [l.strip() for l in f]
47
except (OSError, IOError):
48
pass
0 commit comments