Commit ba117c67 authored by norvell's avatar norvell
Browse files

Merge branch '7-progressbar-in-utils-py-contains-unrecognized-characters-halts-scripts' into 'main'

Provide alternative characters for progressbar which are recognized

See merge request !24
parents c03ac513 17712c63
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}%{'|'}{'X'*fill}{('.'*(width-fill))}{'|'}{progress}/{count}",
            end="\r",
            file=sys.stdout,
            flush=True,