mirror of
https://github.com/kennethreitz/clint.git
synced 2026-06-05 06:46:16 +00:00
Merge pull request #151 from thusoy/custom-chars
Progress bar: Don't ignore custom bar characters
This commit is contained in:
@@ -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
|
count = len(it) if expected_size is None else expected_size
|
||||||
|
|
||||||
with Bar(label=label, width=width, hide=hide, empty_char=BAR_EMPTY_CHAR,
|
with Bar(label=label, width=width, hide=hide, empty_char=empty_char,
|
||||||
filled_char=BAR_FILLED_CHAR, expected_size=count, every=every) \
|
filled_char=filled_char, expected_size=count, every=every) \
|
||||||
as bar:
|
as bar:
|
||||||
for i, item in enumerate(it):
|
for i, item in enumerate(it):
|
||||||
yield item
|
yield item
|
||||||
|
|||||||
Reference in New Issue
Block a user