Merge pull request #151 from thusoy/custom-chars

Progress bar: Don't ignore custom bar characters
This commit is contained in:
2017-08-29 01:57:19 -04:00
committed by GitHub
+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 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