Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #151 from thusoy/custom-chars
Browse files Browse the repository at this point in the history
Progress bar: Don't ignore custom bar characters
  • Loading branch information
kennethreitz authored Aug 29, 2017
2 parents 3b77ef3 + 52ff92d commit e4ba837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clint/textui/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def bar(it, label='', width=32, hide=None, empty_char=BAR_EMPTY_CHAR,

count = len(it) if expected_size is None else expected_size

with Bar(label=label, width=width, hide=hide, empty_char=BAR_EMPTY_CHAR,
filled_char=BAR_FILLED_CHAR, expected_size=count, every=every) \
with Bar(label=label, width=width, hide=hide, empty_char=empty_char,
filled_char=filled_char, expected_size=count, every=every) \
as bar:
for i, item in enumerate(it):
yield item
Expand Down

0 comments on commit e4ba837

Please sign in to comment.