[143774] contrib/pypi2port/pypi2port.py
raimue at macports.org
raimue at macports.org
Mon Dec 21 03:43:26 PST 2015
Revision: 143774
https://trac.macports.org/changeset/143774
Author: raimue at macports.org
Date: 2015-12-21 03:43:25 -0800 (Mon, 21 Dec 2015)
Log Message:
-----------
pypi2port: write the downloaded data to the file
Modified Paths:
--------------
contrib/pypi2port/pypi2port.py
Modified: contrib/pypi2port/pypi2port.py
===================================================================
--- contrib/pypi2port/pypi2port.py 2015-12-21 11:33:39 UTC (rev 143773)
+++ contrib/pypi2port/pypi2port.py 2015-12-21 11:43:25 UTC (rev 143774)
@@ -140,6 +140,7 @@
sys.stdout.flush()
buff = 0
for chunk in r.iter_content(block_sz):
+ f.write(chunk)
if file_size_dl+block_sz > file_size:
file_size_dl = file_size
count += 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151221/c6571111/attachment.html>
More information about the macports-changes
mailing list