Minor whitespace.
This commit is contained in:
parent
acafdac830
commit
307c88cd50
1 changed files with 3 additions and 0 deletions
|
@ -175,12 +175,15 @@ def download_bigchunk_range(bigchunk_xy1, bigchunk_xy2, threads=1):
|
||||||
download multiple bigchunks, and yield all of the small chunks.
|
download multiple bigchunks, and yield all of the small chunks.
|
||||||
'''
|
'''
|
||||||
bigchunks = bigchunk_range_iterator(bigchunk_xy1, bigchunk_xy2)
|
bigchunks = bigchunk_range_iterator(bigchunk_xy1, bigchunk_xy2)
|
||||||
|
|
||||||
if threads < 1:
|
if threads < 1:
|
||||||
raise ValueError(threads)
|
raise ValueError(threads)
|
||||||
|
|
||||||
if threads == 1:
|
if threads == 1:
|
||||||
for (x, y) in bigchunks:
|
for (x, y) in bigchunks:
|
||||||
chunks = download_bigchunk(x, y)
|
chunks = download_bigchunk(x, y)
|
||||||
yield from chunks
|
yield from chunks
|
||||||
|
|
||||||
else:
|
else:
|
||||||
pool = threadpool.ThreadPool(size=threads)
|
pool = threadpool.ThreadPool(size=threads)
|
||||||
jobs = []
|
jobs = []
|
||||||
|
|
Loading…
Reference in a new issue