Skip to content

Commit 53c94d6

Browse files
authored
Merge pull request #134 from mvanhorn/fix/replace-codecs-open-issue-128
fix: replace deprecated codecs.open with built-in open (#128)
2 parents 5c1b303 + 5e74292 commit 53c94d6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

gitdb/db/ref.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#
33
# This module is part of GitDB and is released under
44
# the New BSD License: https://opensource.org/license/bsd-3-clause/
5-
import codecs
65
from gitdb.db.base import (
76
CompoundDB,
87
)
@@ -42,7 +41,7 @@ def _update_dbs_from_ref_file(self):
4241
# try to get as many as possible, don't fail if some are unavailable
4342
ref_paths = list()
4443
try:
45-
with codecs.open(self._ref_file, 'r', encoding="utf-8") as f:
44+
with open(self._ref_file, 'r', encoding="utf-8") as f:
4645
ref_paths = [l.strip() for l in f]
4746
except OSError:
4847
pass

0 commit comments

Comments
 (0)