summaryrefslogtreecommitdiff
path: root/gitdb/stream.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitdb/stream.py')
-rw-r--r--gitdb/stream.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gitdb/stream.py b/gitdb/stream.py
index 330f749..1c1df23 100644
--- a/gitdb/stream.py
+++ b/gitdb/stream.py
@@ -25,6 +25,7 @@ from gitdb.util import (
write,
close,
suppress,
+ is_darwin,
)
from gitdb.const import NULL_BYTE, BYTE_SPACE
@@ -318,7 +319,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 PY26 or ((zlib.ZLIB_VERSION == '1.2.7' or zlib.ZLIB_VERSION == '1.2.5') and not is_darwin):
unused_datalen = len(self._zip.unconsumed_tail)
else:
unused_datalen = len(self._zip.unconsumed_tail) + len(self._zip.unused_data)
@@ -447,7 +448,7 @@ class DeltaApplyReader(LazyMixin):
# TODO: There should be a special case if there is only one stream
# Then the default-git algorithm should perform a tad faster, as the
# delta is not peaked into, causing less overhead.
- buffer_info_list = list()
+ buffer_info_list = []
max_target_size = 0
for dstream in self._dstreams:
buf = dstream.read(512) # read the header information + X