Merge pull request #20 from robbles/develop

fix mismatch with argument names for progress.bar
This commit is contained in:
Kenneth Reitz
2011-12-24 23:01:49 -08:00
+3 -2
View File
@@ -17,9 +17,10 @@ STREAM = sys.stderr
BAR_TEMPLATE = '%s[%s%s] %i/%i\r'
DOTS_CHAR = '.'
BAR_FILLED_CHAR = '#'
BAR_EMPTY_CHAR = ' '
def bar(it, label='', width=32, hide=False, empty_char='-', filled_char='='):
def bar(it, label='', width=32, hide=False, empty_char=BAR_EMPTY_CHAR, filled_char=BAR_FILLED_CHAR):
"""Progress iterator. Wrap your iterables with it."""
def _show(_i):