mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 22:34:01 -07:00
fix: be up to flake8
This commit is contained in:
parent
8c23106b03
commit
2f96d444f8
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue