Skip to content

Commit 5d22d57

Browse files
Harmon758Byron
authored andcommitted
Remove and replace compat.izip
1 parent a10ceef commit 5d22d57

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Diff for: git/compat.py

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
import sys
1313

1414

15-
from gitdb.utils.compat import (
16-
izip, # @UnusedImport
17-
)
1815
from gitdb.utils.encoding import (
1916
string_types, # @UnusedImport
2017
text_type, # @UnusedImport

Diff for: git/index/base.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import tempfile
1212

1313
from git.compat import (
14-
izip,
1514
string_types,
1615
force_bytes,
1716
defenc,
@@ -270,8 +269,8 @@ def new(cls, repo, *tree_sha):
270269

271270
inst = cls(repo)
272271
# convert to entries dict
273-
entries = dict(izip(((e.path, e.stage) for e in base_entries),
274-
(IndexEntry.from_base(e) for e in base_entries)))
272+
entries = dict(zip(((e.path, e.stage) for e in base_entries),
273+
(IndexEntry.from_base(e) for e in base_entries)))
275274

276275
inst.entries = entries
277276
return inst

0 commit comments

Comments
 (0)