Force tqdm to use ASCII characters for the progress bar

This commit is contained in:
phoneee 2023-05-15 23:03:28 +07:00 committed by GitHub
parent 248b6cb124
commit 1ddb875ca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,6 +71,7 @@ def _download(url: str, root: str, in_memory: bool) -> Union[bytes, str]:
unit="iB",
unit_scale=True,
unit_divisor=1024,
ascii=True,
) as loop:
while True:
buffer = source.read(8192)