diff options
author | Harmon <Harmon758@gmail.com> | 2020-02-07 06:13:35 -0600 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-02-08 10:55:50 +0800 |
commit | 5d22d57010e064cfb9e0b6160e7bd3bb31dbfffc (patch) | |
tree | 644aa332f73c241ea51d1178d66c8284e3c3e26e | |
parent | a10ceef3599b6efc0e785cfce17f9dd3275d174f (diff) | |
download | gitpython-5d22d57010e064cfb9e0b6160e7bd3bb31dbfffc.tar.gz |
Remove and replace compat.izip
-rw-r--r-- | git/compat.py | 3 | ||||
-rw-r--r-- | git/index/base.py | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/git/compat.py b/git/compat.py index ed36c461..91676327 100644 --- a/git/compat.py +++ b/git/compat.py @@ -12,9 +12,6 @@ import os import sys -from gitdb.utils.compat import ( - izip, # @UnusedImport -) from gitdb.utils.encoding import ( string_types, # @UnusedImport text_type, # @UnusedImport diff --git a/git/index/base.py b/git/index/base.py index c8ca462f..98c3b0f1 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -11,7 +11,6 @@ import subprocess import tempfile from git.compat import ( - izip, string_types, force_bytes, defenc, @@ -270,8 +269,8 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): inst = cls(repo) # convert to entries dict - entries = dict(izip(((e.path, e.stage) for e in base_entries), - (IndexEntry.from_base(e) for e in base_entries))) + entries = dict(zip(((e.path, e.stage) for e in base_entries), + (IndexEntry.from_base(e) for e in base_entries))) inst.entries = entries return inst |