mirror of
https://github.com/corpnewt/gibMacOS.git
synced 2025-01-08 18:57:33 +01:00
Update downloader.py from pymodules
This commit is contained in:
parent
fdfe3126d1
commit
fc7da4b8e5
2
Scripts/downloader.py
Normal file → Executable file
2
Scripts/downloader.py
Normal file → Executable file
@ -61,7 +61,7 @@ class Downloader:
|
|||||||
b_s = self.get_size(bytes_so_far)
|
b_s = self.get_size(bytes_so_far)
|
||||||
sys.stdout.write("Downloaded {} of {} ({:.2f}%)\r".format(b_s, t_s, percent))
|
sys.stdout.write("Downloaded {} of {} ({:.2f}%)\r".format(b_s, t_s, percent))
|
||||||
else:
|
else:
|
||||||
sys.stdout.write("Downloaded {}\r".format(b_s))
|
sys.stdout.write("Downloaded {:,}\r".format(bytes_so_far))
|
||||||
|
|
||||||
def get_string(self, url, progress = True):
|
def get_string(self, url, progress = True):
|
||||||
response = self.open_url(url)
|
response = self.open_url(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user