summaryrefslogtreecommitdiff
path: root/gitdb/stream.py
diff options
context:
space:
mode:
authorKostis Anagnostopoulos <ankostis@gmail.com>2016-10-24 17:32:06 +0200
committerKostis Anagnostopoulos <ankostis@gmail.com>2016-10-24 18:26:06 +0200
commit534c9bbe320f638153f9ffd79b79fa124b544d0f (patch)
tree731c56781e2b0bf367919ed8a0ef7e0a61f6a200 /gitdb/stream.py
parent08b1f5f4fdc95d4ce24aa33ec82ac0d9723b8a02 (diff)
downloadgitdb-2.1.0.dev1.tar.gz
fix(win): FIX and HIDE 2 win-errors remainingv2.1.0.dev1
+ File-in-use errors were fixed with `gitdb.util.mman.collect()`! + This call is disabled `gitdb.util.HIDE_WINDOWS_KNOWN_ERRORS == False`. + Depend on latest smmp `v2.1.0.dev1` tag
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