[diffoscope] 01/04: Don't show progress bar if we passed --debug; it just gets in the way.

Chris Lamb chris at chris-lamb.co.uk
Thu Mar 1 23:50:47 CET 2018


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

lamby pushed a commit to branch master
in repository diffoscope.

commit c38d7ecd782ff6fdc566d2788716750897d6e504
Author: Chris Lamb <lamby at debian.org>
Date:   Thu Mar 1 22:14:23 2018 +0000

    Don't show progress bar if we passed --debug; it just gets in the way.
---
 diffoscope/progress.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/diffoscope/progress.py b/diffoscope/progress.py
index 9c8102b..e60188c 100644
--- a/diffoscope/progress.py
+++ b/diffoscope/progress.py
@@ -63,9 +63,9 @@ class ProgressManager(object):
             if parsed_args.progress:
                 return True
 
-            # ... otherwise show it if STDOUT is a tty
+            # ... otherwise show it if STDOUT is a tty and we are not debugging
             if parsed_args.progress is None:
-                return sys.stdout.isatty()
+                return sys.stdout.isatty() and not parsed_args.debug
 
             return False
 

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


More information about the diffoscope mailing list