diff --git a/kg_covid_19/utils/download_utils.py b/kg_covid_19/utils/download_utils.py index 03f6a241..4c83eed9 100644 --- a/kg_covid_19/utils/download_utils.py +++ b/kg_covid_19/utils/download_utils.py @@ -45,8 +45,7 @@ def download_from_yaml(yaml_file: str, output_dir: str, logging.info("Using cached version of {}".format(outfile)) continue - with urllib.request.urlopen(item['url']) as response,\ - open(outfile, 'wb') as out_file: + with urllib.request.urlopen(item['url']) as response, open(outfile, 'wb') as out_file: # type: ignore data = response.read() # a `bytes` object out_file.write(data)