diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2021-08-19 12:31:04 +0300 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-08-19 18:43:56 +0800 |
commit | 01b6510de861ed19958ecdd445afaccd2d8a7951 (patch) | |
tree | dec009d1bd4b2507bcaf84061745133851be68fe | |
parent | 1003c6612e0ee8973ba701e317b7308b7d0136aa (diff) | |
download | gitdb-01b6510de861ed19958ecdd445afaccd2d8a7951.tar.gz |
Remove redundant Python 2.6 code
-rw-r--r-- | gitdb/stream.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gitdb/stream.py b/gitdb/stream.py index b94ef24..d58d1a6 100644 --- a/gitdb/stream.py +++ b/gitdb/stream.py @@ -30,7 +30,6 @@ from gitdb.const import NULL_BYTE, BYTE_SPACE from gitdb.utils.encoding import force_bytes has_perf_mod = False -PY26 = sys.version_info[:2] < (2, 7) try: from gitdb_speedups._perf import apply_delta as c_apply_delta has_perf_mod = True @@ -295,7 +294,7 @@ class DecompressMemMapReader(LazyMixin): # However, the zlib VERSIONs as well as the platform check is used to further match the entries in the # table in the github issue. This is it ... it was the only way I could make this work everywhere. # IT's CERTAINLY GOING TO BITE US IN THE FUTURE ... . - if PY26 or ((zlib.ZLIB_VERSION == '1.2.7' or zlib.ZLIB_VERSION == '1.2.5') and not sys.platform == 'darwin'): + if zlib.ZLIB_VERSION in ('1.2.7', '1.2.5') and not sys.platform == 'darwin': unused_datalen = len(self._zip.unconsumed_tail) else: unused_datalen = len(self._zip.unconsumed_tail) + len(self._zip.unused_data) |