Skip to content

Commit 01b6510

Browse files
hugovkByron
authored andcommitted
Remove redundant Python 2.6 code
1 parent 1003c66 commit 01b6510

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gitdb/stream.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
from gitdb.utils.encoding import force_bytes
3131

3232
has_perf_mod = False
33-
PY26 = sys.version_info[:2] < (2, 7)
3433
try:
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)

0 commit comments

Comments
 (0)