Update downloader.py from pymodules

This commit is contained in:
CorpNewt 2019-03-26 17:05:32 -05:00
parent ec5e56551a
commit f2dcbab32a

View File

@ -70,6 +70,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:
b_s = self.get_size(bytes_so_far)
sys.stdout.write("Downloaded {}\r".format(b_s)) sys.stdout.write("Downloaded {}\r".format(b_s))
def get_string(self, url, progress = True, headers = None): def get_string(self, url, progress = True, headers = None):