Update downloader.py from pymodules

This commit is contained in:
corpnewt 2018-12-27 18:11:18 -06:00
parent fdfe3126d1
commit fc7da4b8e5

2
Scripts/downloader.py Normal file → Executable file
View 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)