Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit5d22d57

Browse files
Harmon758Byron
authored andcommitted
Remove and replace compat.izip
1 parenta10ceef commit5d22d57

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

‎git/compat.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
importsys
1313

1414

15-
fromgitdb.utils.compatimport (
16-
izip,# @UnusedImport
17-
)
1815
fromgitdb.utils.encodingimport (
1916
string_types,# @UnusedImport
2017
text_type,# @UnusedImport

‎git/index/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
importtempfile
1212

1313
fromgit.compatimport (
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)foreinbase_entries),
274-
(IndexEntry.from_base(e)foreinbase_entries)))
272+
entries=dict(zip(((e.path,e.stage)foreinbase_entries),
273+
(IndexEntry.from_base(e)foreinbase_entries)))
275274

276275
inst.entries=entries
277276
returninst

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp