From f411904c13420f92c12d7b24adfe27d77a7fc480 Mon Sep 17 00:00:00 2001 From: rasbt Date: Mon, 3 Feb 2014 14:03:15 -0500 Subject: [PATCH] percentage float division for python2 users --- pyprind/.progbar.py.swo | Bin 12288 -> 12288 bytes pyprind/progpercent.py | 1 + 2 files changed, 1 insertion(+) diff --git a/pyprind/.progbar.py.swo b/pyprind/.progbar.py.swo index 94414a2bcf115180f4e45657c7dc33ca91bdbd3a..f522921ae51804a76ed31a4aa7dd683bc654c7e0 100644 GIT binary patch delta 31 ncmZojXh_)bo|!Rp^9SZHGEB)Fn;BUu*eB;`2yD*Nn8XeM#W@Qs delta 31 ncmZojXh_)bo|%zh^9SZHGECVVn;BW!*eAzn2yCv=XkiBczFZ35 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):