File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 16
16
17
17
from gitdb .const import NULL_BYTE , BYTE_SPACE
18
18
from gitdb .utils .encoding import force_text
19
- from gitdb .utils .compat import izip , buffer , xrange , PY3
19
+ from gitdb .utils .compat import buffer , xrange , PY3
20
20
from gitdb .typ import (
21
21
str_blob_type ,
22
22
str_commit_type ,
@@ -314,7 +314,7 @@ def check_integrity(self, target_size=-1):
314
314
right .next ()
315
315
# this is very pythonic - we might have just use index based access here,
316
316
# but this could actually be faster
317
- for lft , rgt in izip (left , right ):
317
+ for lft , rgt in zip (left , right ):
318
318
assert lft .rbound () == rgt .to
319
319
assert lft .to + lft .ts == rgt .to
320
320
# END for each pair
Original file line number Diff line number Diff line change 63
63
64
64
from gitdb .const import NULL_BYTE
65
65
from gitdb .utils .compat import (
66
- izip ,
67
66
buffer ,
68
67
xrange ,
69
68
to_bytes
@@ -696,7 +695,7 @@ def _set_cache_(self, attr):
696
695
iter_offsets = iter (offsets_sorted )
697
696
iter_offsets_plus_one = iter (offsets_sorted )
698
697
next (iter_offsets_plus_one )
699
- consecutive = izip (iter_offsets , iter_offsets_plus_one )
698
+ consecutive = zip (iter_offsets , iter_offsets_plus_one )
700
699
701
700
offset_map = dict (consecutive )
702
701
Original file line number Diff line number Diff line change 3
3
PY3 = sys .version_info [0 ] == 3
4
4
5
5
try :
6
- from itertools import izip
7
6
xrange = xrange
8
7
except ImportError :
9
8
# py3
10
- izip = zip
11
9
xrange = range
12
10
# end handle python version
13
11
You can’t perform that action at this time.
0 commit comments