We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c1b303 + 5e74292 commit 53c94d6Copy full SHA for 53c94d6
1 file changed
gitdb/db/ref.py
@@ -2,7 +2,6 @@
2
#
3
# This module is part of GitDB and is released under
4
# the New BSD License: https://opensource.org/license/bsd-3-clause/
5
-import codecs
6
from gitdb.db.base import (
7
CompoundDB,
8
)
@@ -42,7 +41,7 @@ def _update_dbs_from_ref_file(self):
42
41
# try to get as many as possible, don't fail if some are unavailable
43
ref_paths = list()
44
try:
45
- with codecs.open(self._ref_file, 'r', encoding="utf-8") as f:
+ with open(self._ref_file, 'r', encoding="utf-8") as f:
46
ref_paths = [l.strip() for l in f]
47
except OSError:
48
pass
0 commit comments