Commit 586f8193 authored by norvell's avatar norvell
Browse files

Provide alternative characters for progressbar which are recognized

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