fix: be up to flake8

This commit is contained in:
teddy171 2023-01-30 09:26:30 +08:00
parent 8c23106b03
commit 2f96d444f8

View File

@ -249,7 +249,7 @@ class Aria2pFD(ExternalFD):
'tmpfilename': tmpfilename, 'tmpfilename': tmpfilename,
} }
started = time.time() started = time.time()
while download.status in ['active', 'waiting'] : while download.status in ['active', 'waiting']:
download = aria2.get_download(download.gid) download = aria2.get_download(download.gid)
status.update({ status.update({
'downloaded_bytes': download.completed_length, 'downloaded_bytes': download.completed_length,
@ -260,7 +260,7 @@ class Aria2pFD(ExternalFD):
}) })
self._hook_progress(status) self._hook_progress(status)
time.sleep(.5) time.sleep(.5)
return not(download.status == 'complete') return not (download.status == 'complete')
class HttpieFD(ExternalFD): class HttpieFD(ExternalFD):