changeset 7:b1bc53e9bbc5 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_fetch_genome_dbkeys_all_fasta commit 8b8103fc4277014570a021cf3090b6986d17f7ff
author iuc
date Thu, 15 Jun 2017 13:14:56 -0400
parents 16ab4dd6a0e5
children 14eb0fc65c62
files data_manager/data_manager_fetch_genome_all_fasta_dbkeys.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data_manager/data_manager_fetch_genome_all_fasta_dbkeys.py	Fri Apr 07 06:43:39 2017 -0400
+++ b/data_manager/data_manager_fetch_genome_all_fasta_dbkeys.py	Thu Jun 15 13:14:56 2017 -0400
@@ -205,7 +205,12 @@
 def _download_file(start, fh):
     tmp = tempfile.NamedTemporaryFile()
     tmp.write(start)
-    tmp.write(fh.read())
+    while True:
+        data = fh.read(CHUNK_SIZE)
+        if data:
+            tmp.write(data)
+        else:
+            break
     tmp.flush()
     tmp.seek(0)
     return tmp