From 2f96d444f86ed576ce00e17b35af3d7a90854573 Mon Sep 17 00:00:00 2001 From: teddy171 Date: Mon, 30 Jan 2023 09:26:30 +0800 Subject: [PATCH] fix: be up to flake8 --- youtube_dl/downloader/external.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index cf22ef05e..f1828d545 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -249,7 +249,7 @@ class Aria2pFD(ExternalFD): 'tmpfilename': tmpfilename, } started = time.time() - while download.status in ['active', 'waiting'] : + while download.status in ['active', 'waiting']: download = aria2.get_download(download.gid) status.update({ 'downloaded_bytes': download.completed_length, @@ -260,7 +260,7 @@ class Aria2pFD(ExternalFD): }) self._hook_progress(status) time.sleep(.5) - return not(download.status == 'complete') + return not (download.status == 'complete') class HttpieFD(ExternalFD):