Skip to content

Commit

Permalink
Ruff format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
apriha committed Dec 4, 2024
1 parent c702fa6 commit c615d99
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/snps/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,11 +767,10 @@ def _download_file(self, url, filename, compress=False, timeout=30):
try:
# get file if it hasn't already been downloaded
# http://stackoverflow.com/a/7244263
with urllib.request.urlopen(
url, timeout=timeout
) as response, atomic_write(
destination, mode="wb", overwrite=True
) as f:
with (
urllib.request.urlopen(url, timeout=timeout) as response,
atomic_write(destination, mode="wb", overwrite=True) as f,
):
self._print_download_msg(destination)
data = response.read() # a `bytes` object

Expand Down

0 comments on commit c615d99

Please sign in to comment.