forked from Mirrors/humblebundle-downloader
Flake8 fix
This commit is contained in:
@@ -349,8 +349,7 @@ class DownloadLibrary:
|
|||||||
done = int(pb_width * dl / total_length)
|
done = int(pb_width * dl / total_length)
|
||||||
if self.progress_bar:
|
if self.progress_bar:
|
||||||
print("\t{percent}% [{filler}{space}]"
|
print("\t{percent}% [{filler}{space}]"
|
||||||
.format(local_filename=local_filename,
|
.format(percent=int(done * (100 / pb_width)),
|
||||||
percent=int(done * (100 / pb_width)),
|
|
||||||
filler='=' * done,
|
filler='=' * done,
|
||||||
space=' ' * (pb_width - done),
|
space=' ' * (pb_width - done),
|
||||||
), end='\r')
|
), end='\r')
|
||||||
|
|||||||
Reference in New Issue
Block a user