[diffoscope] 05/12: Config().hide_profile insted of Config.hide_profile for class variable.

Maria Glukhova siamezzze-guest at moszumanska.debian.org
Wed Mar 8 15:59:09 CET 2017


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

siamezzze-guest pushed a commit to branch siamezzze/hide-profiles-experiment
in repository diffoscope.

commit 40a91ae3426afba1513e970b997eec4d165177c9
Author: Maria Glukhova <siamezzze at gmail.com>
Date:   Mon Feb 6 09:14:09 2017 +0200

    Config().hide_profile insted of Config.hide_profile for class variable.
---
 diffoscope/presenters/html/html.py | 4 ++--
 diffoscope/presenters/text.py      | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/diffoscope/presenters/html/html.py b/diffoscope/presenters/html/html.py
index 2d35e1e..205c906 100644
--- a/diffoscope/presenters/html/html.py
+++ b/diffoscope/presenters/html/html.py
@@ -439,8 +439,8 @@ def escape_anchor(val):
     return val
 
 def output_difference(difference, print_func, css_url, directory, parents):
-    if Config.hide_profile is not None:
-        if difference.source1 in Config.hide_profile:
+    if Config().hide_profile is not None:
+        if difference.source1 in Config().hide_profile:
             logger.debug('output for %s is hidden', difference.source1)
             return
     logger.debug('html output for %s', difference.source1)
diff --git a/diffoscope/presenters/text.py b/diffoscope/presenters/text.py
index 5e20153..6e09d55 100644
--- a/diffoscope/presenters/text.py
+++ b/diffoscope/presenters/text.py
@@ -45,8 +45,8 @@ class TextPresenter(Presenter):
             self.print_func("Max output size reached.", force=True)
 
     def visit_difference(self, difference):
-        if Config.hide_profile is not None and \
-                        difference.source1 in Config.hide_profile:
+        if Config().hide_profile is not None and \
+                        difference.source1 in Config().hide_profile:
             return
         if self.depth == 0:
             self.output("--- {}".format(difference.source1))

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


More information about the diffoscope mailing list