From d829cc195895b8fc8b2954b0836a4ea91b8324e1 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Mon, 15 Aug 2022 14:32:16 +0530 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Formatting=20fix=20[skip?= =?UTF-8?q?=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index a26720f..ce9b784 100644 --- a/main.py +++ b/main.py @@ -39,14 +39,15 @@ class Downloader: start = perf_counter() resp = session.get(url, stream=True) total = int(resp.headers.get("content-length", 0)) - with temp_folder.joinpath(file_name).open("wb") as dl_file, tqdm( + bar = tqdm( desc=file_name, total=total, unit="iB", unit_scale=True, unit_divisor=1024, colour="green", - ) as bar: + ) + with temp_folder.joinpath(file_name).open("wb") as dl_file, bar: for chunk in resp.iter_content(cls._CHUNK_SIZE): size = dl_file.write(chunk) bar.update(size) @@ -297,7 +298,6 @@ def main() -> None: downloader.repository("cli") downloader.repository("integrations") downloader.repository("patches") - # downloader.report() def get_patches() -> None: logger.debug(f"Excluding patches for app {app}")