Flush sys.stdout after writing

This commit is contained in:
CorpNewt 2024-07-15 08:57:07 -05:00 committed by GitHub
parent 3ef65d1d1e
commit c671f066aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -132,6 +132,7 @@ class Downloader:
else:
b_s = self.get_size(bytes_so_far)
sys.stdout.write("\r\033[K{}{}".format(b_s, speed))
sys.stdout.flush()
def get_string(self, url, progress = True, headers = None, expand_gzip = True):
response = self.get_bytes(url,progress,headers,expand_gzip)