Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5d22d57

Browse filesBrowse files
Harmon758Byron
authored andcommitted
Remove and replace compat.izip
1 parent a10ceef commit 5d22d57
Copy full SHA for 5d22d57

File tree

2 files changed

+2
-6
lines changed
Filter options

2 files changed

+2
-6
lines changed

‎git/compat.py

Copy file name to clipboardExpand all lines: git/compat.py
-3Lines changed: 0 additions & 3 deletions
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

‎git/index/base.py

Copy file name to clipboardExpand all lines: git/index/base.py
+2-3Lines changed: 2 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.