Skip to content

Commit a19fcd0

Browse files
committed
HARMONY-1929: Lint cleanup
1 parent 9d6f685 commit a19fcd0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

harmony/harmony.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,13 +1317,14 @@ def _download_file(self, url: str, directory: str = '', overwrite: bool = False)
13171317
parse_result = parse.urlparse(url)
13181318
is_opendap = parse_result.netloc.startswith('opendap')
13191319
method = 'post' if is_opendap else 'get'
1320-
if is_opendap: # remove the query params from the URL and convert to dict
1320+
if is_opendap: # remove the query params from the URL and convert to dict
13211321
new_url = parse.urlunparse(parse_result._replace(query=""))
13221322
data_dict = dict(parse.parse_qsl(parse.urlsplit(url).query))
13231323
headers = {
13241324
"Accept-Encoding": "identity"
13251325
}
1326-
with getattr(session, method)(new_url, data=data_dict, stream=True, headers=headers) as r:
1326+
with getattr(session, method)(
1327+
new_url, data=data_dict, stream=True, headers=headers) as r:
13271328
with open(filename, 'wb') as f:
13281329
shutil.copyfileobj(r.raw, f, length=chunksize)
13291330
if verbose and verbose.upper() == 'TRUE':

0 commit comments

Comments
 (0)