[diffoscope] 05/05: comparators.utils.file: Only show the class name in "Returning a X for Y" messages.

Chris Lamb chris at chris-lamb.co.uk
Tue Jan 10 14:00:59 CET 2017


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

lamby pushed a commit to branch master
in repository diffoscope.

commit a771964c0e12b57338dad6e97789b21a72069219
Author: Chris Lamb <lamby at debian.org>
Date:   Tue Jan 10 12:52:43 2017 +0000

    comparators.utils.file: Only show the class name in "Returning a X for Y" messages.
    
    Gbp-Dch: ignore
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/comparators/utils/file.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/diffoscope/comparators/utils/file.py b/diffoscope/comparators/utils/file.py
index 8bc7c53..55fd895 100644
--- a/diffoscope/comparators/utils/file.py
+++ b/diffoscope/comparators/utils/file.py
@@ -109,7 +109,11 @@ class File(object, metaclass=abc.ABCMeta):
                 self._as_container = self.__class__.CONTAINER_CLASS(self)
             except RequiredToolNotFound:
                 return None
-        logger.debug('returning a %s for %s', self._as_container.__class__, self)
+        logger.debug(
+            "Returning a %s for %s",
+            self._as_container.__class__.__name__,
+            self,
+        )
         return self._as_container
 
     @property

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


More information about the diffoscope mailing list