mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Fix pylint in downloaders
This commit is contained in:
parent
d18b48aaf4
commit
55ba2f4070
@ -39,7 +39,12 @@ class HttpDownloader():
|
|||||||
)
|
)
|
||||||
return session
|
return session
|
||||||
|
|
||||||
def download(self, url: str, target_path: Path, parameters: Optional[Dict[str, Any]] = None) -> None:
|
def download(
|
||||||
|
self,
|
||||||
|
url: str,
|
||||||
|
target_path: Path,
|
||||||
|
parameters: Optional[Dict[str, Any]] = None,
|
||||||
|
) -> None:
|
||||||
"""Download a given url to a given path, optionally with some get parameters."""
|
"""Download a given url to a given path, optionally with some get parameters."""
|
||||||
parameters = parameters if parameters else {}
|
parameters = parameters if parameters else {}
|
||||||
with self._session.get(url, params=parameters, stream=True) as response:
|
with self._session.get(url, params=parameters, stream=True) as response:
|
||||||
|
Loading…
Reference in New Issue
Block a user