[diffoscope] 03/03: comparators/elf.py: Specify string format arguments as logging function parameters, not using interpolation.

Chris Lamb chris at chris-lamb.co.uk
Thu Aug 25 19:03:10 CEST 2016


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

lamby pushed a commit to branch master
in repository diffoscope.

commit 0a46612ef3e9ee2e21dec805cb4e1b852c6e9fab
Author: Chris Lamb <lamby at debian.org>
Date:   Thu Aug 25 18:02:59 2016 +0100

    comparators/elf.py: Specify string format arguments as logging function parameters, not using interpolation.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/comparators/elf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/diffoscope/comparators/elf.py b/diffoscope/comparators/elf.py
index e769613..e1da8d1 100644
--- a/diffoscope/comparators/elf.py
+++ b/diffoscope/comparators/elf.py
@@ -356,8 +356,8 @@ class ElfContainer(Container):
                 logger.debug('adding section %s (%s) as %s', name, type, elf_class)
         except Exception as e:
             command = ' '.join(cmd)
-            logger.debug('OutputParsingError in %s from `%s` output - %s:%s'
-                    % (self.__class__.__name__, command, e.__class__.__name__, e))
+            logger.debug('OutputParsingError in %s from `%s` output - %s:%s',
+                    self.__class__.__name__, command, e.__class__.__name__, e)
             raise OutputParsingError(command, self)
         if not has_debug_symbols:
             self._install_debug_symbols()

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


More information about the diffoscope mailing list