diff --git a/pyprind/.progbar.py.swo b/pyprind/.progbar.py.swo index 94414a2..f522921 100644 Binary files a/pyprind/.progbar.py.swo and b/pyprind/.progbar.py.swo differ diff --git a/pyprind/progpercent.py b/pyprind/progpercent.py index 4e65876..919e9de 100644 --- a/pyprind/progpercent.py +++ b/pyprind/progpercent.py @@ -20,6 +20,7 @@ class ProgPercent(Prog): def __init__(self, iterations, track_time=True, stream=2): Prog.__init__(self, iterations, track_time, stream) self.perc = 0 + self.max_iter = float(self.max_iter) # accommodation for Python 2.x users self.__print_update() def __calc_percent(self):