File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 30
30
from gitdb .utils .encoding import force_bytes
31
31
32
32
has_perf_mod = False
33
- PY26 = sys .version_info [:2 ] < (2 , 7 )
34
33
try :
35
34
from gitdb_speedups ._perf import apply_delta as c_apply_delta
36
35
has_perf_mod = True
@@ -295,7 +294,7 @@ def read(self, size=-1):
295
294
# However, the zlib VERSIONs as well as the platform check is used to further match the entries in the
296
295
# table in the github issue. This is it ... it was the only way I could make this work everywhere.
297
296
# IT's CERTAINLY GOING TO BITE US IN THE FUTURE ... .
298
- if PY26 or (( zlib .ZLIB_VERSION == '1.2.7' or zlib . ZLIB_VERSION == '1.2.5' ) and not sys .platform == 'darwin' ) :
297
+ if zlib .ZLIB_VERSION in ( '1.2.7' , '1.2.5' ) and not sys .platform == 'darwin' :
299
298
unused_datalen = len (self ._zip .unconsumed_tail )
300
299
else :
301
300
unused_datalen = len (self ._zip .unconsumed_tail ) + len (self ._zip .unused_data )
You can’t perform that action at this time.
0 commit comments