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 3030from gitdb .utils .encoding import force_bytes
3131
3232has_perf_mod = False
33- PY26 = sys .version_info [:2 ] < (2 , 7 )
3433try :
3534 from gitdb_speedups ._perf import apply_delta as c_apply_delta
3635 has_perf_mod = True
@@ -295,7 +294,7 @@ def read(self, size=-1):
295294 # However, the zlib VERSIONs as well as the platform check is used to further match the entries in the
296295 # table in the github issue. This is it ... it was the only way I could make this work everywhere.
297296 # 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' :
299298 unused_datalen = len (self ._zip .unconsumed_tail )
300299 else :
301300 unused_datalen = len (self ._zip .unconsumed_tail ) + len (self ._zip .unused_data )
You can’t perform that action at this time.
0 commit comments