[Reproducible-commits] [diffoscope] 01/02: Use not any(...) as suggested by Lunar
Joachim Breitner
nomeata at moszumanska.debian.org
Wed Dec 2 16:03:14 UTC 2015
This is an automated email from the git hooks/post-receive script.
nomeata pushed a commit to branch html-dir
in repository diffoscope.
commit dcc669a31db31f75e48d77a4a27c6a875eb466c9
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Wed Dec 2 16:58:51 2015 +0100
Use not any(...) as suggested by Lunar
---
diffoscope/__main__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/diffoscope/__main__.py b/diffoscope/__main__.py
index cce8310..986b45b 100644
--- a/diffoscope/__main__.py
+++ b/diffoscope/__main__.py
@@ -133,7 +133,7 @@ def run_diffoscope(parsed_args):
parsed_args.file1, parsed_args.file2)
if difference:
# no output desired? print text
- if not parsed_args.text_output and not parsed_args.html_output and not parsed_args.html_output_directory:
+ if not any((parsed_args.text_output, parsed_args.html_output, parsed_args.html_output_directory)):
parsed_args.text_output = "-"
if parsed_args.html_output:
with make_printer(parsed_args.html_output) as print_func:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the Reproducible-commits
mailing list