Clears the mill when complete

This commit is contained in:
Dave Buchfuhrer
2014-02-05 22:01:56 -08:00
parent 5305d1e116
commit 84dafbeabe
+1 -1
View File
@@ -97,7 +97,7 @@ def mill(it, label='', hide=HIDE_DEFAULT, expected_size=None, every=1):
"""Progress iterator. Prints a mill while iterating over the items."""
def _mill_char(_i):
if _i == 100:
if _i >= count:
return ' '
else:
return MILL_CHARS[(_i / every) % len(MILL_CHARS)]