# HG changeset patch # User iuc # Date 1497546808 14400 # Node ID 0d13eef4f46c9f1a9f1a9aef63909737f9ff2518 # Parent fd88adb3f376b3af6c17a056ecf17f811dbbb405 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 fd88adb3f376 -r 0d13eef4f46c data_manager/data_manager_fetch_genome_all_fasta_dbkeys.py --- a/data_manager/data_manager_fetch_genome_all_fasta_dbkeys.py Thu Jun 15 13:13:03 2017 -0400 +++ b/data_manager/data_manager_fetch_genome_all_fasta_dbkeys.py Thu Jun 15 13:13:28 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