Mercurial > libervia-backend
comparison libervia/backend/tools/web.py @ 4270:0d7bb4df2343
Reformatted code base using black.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 19 Jun 2024 18:44:57 +0200 |
parents | 4b842c1fb686 |
children |
comparison
equal
deleted
inserted
replaced
4269:64a85ce8be70 | 4270:0d7bb4df2343 |
---|---|
73 #: without explicit warning | 73 #: without explicit warning |
74 treq_client_no_ssl = HTTPClient(http_client.Agent(reactor, NoCheckContextFactory())) | 74 treq_client_no_ssl = HTTPClient(http_client.Agent(reactor, NoCheckContextFactory())) |
75 | 75 |
76 | 76 |
77 async def download_file( | 77 async def download_file( |
78 url: str, | 78 url: str, dest: Union[str, Path, BufferedIOBase], max_size: Optional[int] = None |
79 dest: Union[str, Path, BufferedIOBase], | |
80 max_size: Optional[int] = None | |
81 ) -> None: | 79 ) -> None: |
82 """Helper method to download a file | 80 """Helper method to download a file |
83 | 81 |
84 This is for internal download, for high level download with progression, use | 82 This is for internal download, for high level download with progression, use |
85 ``plugin_misc_download``. | 83 ``plugin_misc_download``. |