Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cnovel committed Jun 16, 2019
1 parent 5920385 commit 42da38f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/bulk_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def download_with_resume(url, path):
with open(path, 'wb') as f:
while last_byte < expected_size:
logging.debug("{} vs {}".format(last_byte, expected_size))
logging.debug("Starting download with already {}% of the file".format((100*last_byte)/expected_size))
logging.debug("Starting download with already {}% of the file".
format((100*last_byte)/expected_size))
resume_header = {'Range': 'bytes=%d-' % last_byte}
resume_request = requests.get(url, headers=resume_header, stream=True,
verify=True, allow_redirects=True)
Expand Down
1 change: 0 additions & 1 deletion src/tests/test_bulk_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,3 @@ def test_try_download_ok(tmp_directory):
def test_try_download_ko(tmp_directory):
assert not bd.try_download('http://www.acute3d.com/embed/Logo-pix4d.png',
os.path.join(tmp_directory, 'pix4d.png'), 2, 1)

0 comments on commit 42da38f

Please sign in to comment.