Commit 16d92136 authored by multrus's avatar multrus
Browse files

use different ASCII characters for progress bar

parent d936bbd3
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -267,7 +267,7 @@ def progressbar(iter: Iterable, width=80):
    def update(progress):
        fill = int(width * progress / count)
        print(
            f"{int(progress/count*100):3d}%{'|'}{'X'*fill}{('.'*(width-fill))}{'|'}{progress}/{count}",
            f"{int(progress/count*100):3d}%{'|'}{'='*fill}{(' '*(width-fill))}{'|'}{progress}/{count}",
            end="\r",
            file=sys.stdout,
            flush=True,