Skip to content

Commit

Permalink
percentage float division for python2 users
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Feb 3, 2014
1 parent 5bf2959 commit f411904
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified pyprind/.progbar.py.swo
Binary file not shown.
1 change: 1 addition & 0 deletions pyprind/progpercent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f411904

Please sign in to comment.