Skip to content

Commit e4cd296

Browse files
hugovkByron
authored andcommitted
Remove redundant Python 2 code
1 parent 01b6510 commit e4cd296

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

gitdb/db/mem.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ def size(self):
8282
return len(self._cache)
8383

8484
def sha_iter(self):
85-
try:
86-
return self._cache.iterkeys()
87-
except AttributeError:
88-
return self._cache.keys()
85+
return self._cache.keys()
8986

9087
#{ Interface
9188
def stream_copy(self, sha_iter, odb):

0 commit comments

Comments
 (0)