[diffoscope] 01/01: Revert "Avoid division-by-zero in the progress bar"

Ximin Luo infinity0 at debian.org
Thu Dec 8 17:15:35 CET 2016


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository diffoscope.

commit 858fbc4b17e6174784eb2197dce70263ee8c9a62
Author: Ximin Luo <infinity0 at debian.org>
Date:   Thu Dec 8 17:15:24 2016 +0100

    Revert "Avoid division-by-zero in the progress bar"
    
    This reverts commit 02eccc43d2bc248f0c2f634f0b97fdab42ffeb2e.
---
 diffoscope/progress.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/diffoscope/progress.py b/diffoscope/progress.py
index a7d2ff6..f59ace3 100644
--- a/diffoscope/progress.py
+++ b/diffoscope/progress.py
@@ -104,9 +104,6 @@ class ProgressBar(object):
         self.bar.start()
 
     def notify(self, current, total):
-        if not total:
-            total = 1
-            current = 1
         self.bar.maxval = total
         self.bar.currval = current
         self.bar.update()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list