mirror of
https://github.com/corpnewt/gibMacOS.git
synced 2024-12-11 14:37:41 +01:00
Flush sys.stdout after writing
This commit is contained in:
parent
3ef65d1d1e
commit
c671f066aa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user