Remove Python 2 compatibility shims by Harmon758 · Pull Request #56 · gitpython-developers/gitdb · GitHub
Skip to content
This repository was archived by the owner on Jul 26, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gitdb/db/loose.py
3 changes: 1 addition & 2 deletions gitdb/db/pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
)

from gitdb.pack import PackEntity
from gitdb.utils.compat import xrange

from functools import reduce

Expand Down Expand Up @@ -107,7 +106,7 @@ def sha_iter(self):
for entity in self.entities():
index = entity.index()
sha_by_index = index.sha
for index in xrange(index.size()):
for index in range(index.size()):
yield sha_by_index(index)
# END for each index
# END for each entity
Expand Down
217 changes: 70 additions & 147 deletions gitdb/fun.py
Loading