Closed flokno closed 4 years ago
This fixes an issue that arises when an empty list is passed to the iter() method.
iter()
Currently, the following example raises a ZeroDivisionError:
ZeroDivisionError
from progress.bar import Bar it = [] bar = Bar("test") for elem in bar.iter(it): pass
I'm sorry I missed your PR and merged a later identical one. Thank you nevertheless.
This fixes an issue that arises when an empty list is passed to the
iter()
method.Currently, the following example raises a
ZeroDivisionError
: