# HG changeset patch # User iuc # Date 1497546896 14400 # Node ID b1bc53e9bbc5939c45e7c8f609734b0665f15c01 # Parent 16ab4dd6a0e591be387cefa80433b10594ed3c1e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_fetch_genome_dbkeys_all_fasta commit 8b8103fc4277014570a021cf3090b6986d17f7ff diff -r 16ab4dd6a0e5 -r b1bc53e9bbc5 data_manager/data_manager_fetch_genome_all_fasta_dbkeys.py --- 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