[Reproducible-commits] [misc] 07/07: reflow use of log.critical and use logging's string interpolation

Chris Lamb lamby at moszumanska.debian.org
Thu Jul 9 09:43:12 UTC 2015


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

lamby pushed a commit to branch master
in repository misc.

commit 995cb1aefc6f21dbea980b949fdf86639368c002
Author: Chris Lamb <lamby at debian.org>
Date:   Thu Jul 9 10:41:53 2015 +0100

    reflow use of log.critical and use logging's string interpolation
---
 clean-notes | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/clean-notes b/clean-notes
index 4c28810..6fbcfc5 100755
--- a/clean-notes
+++ b/clean-notes
@@ -214,8 +214,10 @@ def load_notes():
 def check_notes_validity(notes, testedpkgs):
     for pkg in sorted(notes):
         if pkg not in testedpkgs:
-            log.critical('the package ' + pkg +
-                         ' was never tested. Maybe it\'s misspelled?')
+            log.critical(
+                "the package %s was never tested. Maybe it's misspelled?",
+                pkg,
+            )
 
 
 def check_bugs(notes):

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



More information about the Reproducible-commits mailing list