mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 15:35:05 +02:00
Fix pylint in downloaders
This commit is contained in:
parent
d18b48aaf4
commit
55ba2f4070
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue