From f0b214681c4616c4ca1112eab0e6ccc462344466 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 25 Mar 2024 16:59:21 +0100 Subject: [PATCH] Properly escape char in `progress_chars` --- kiwixbuild/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiwixbuild/utils.py b/kiwixbuild/utils.py index 322eccc..8cce351 100644 --- a/kiwixbuild/utils.py +++ b/kiwixbuild/utils.py @@ -79,7 +79,7 @@ def remove_duplicates(iterable, key_function=None): def get_sha256(path): - progress_chars = "/-\|" + progress_chars = "/-\\|" current = 0 batch_size = 1024 * 8 sha256 = hashlib.sha256() @@ -139,7 +139,7 @@ def download_remote(what, where): context = None batch_size = 1024 * 8 extra_args = {"context": context} if sys.version_info >= (3, 4, 3) else {} - progress_chars = "/-\|" + progress_chars = "/-\\|" try: with urllib.request.urlopen(what.url, **extra_args) as resource, open( file_path, "wb"