Progress bar: Don't ignore custom bar characters

Closes #131.
This commit is contained in:
Tarjei Husøy
2015-09-12 23:54:05 +02:00
parent 2bd5aef5bc
commit 52ff92d7d5
+2 -2
View File
@@ -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