[misc] 01/01: Use .str.format over %

Chris Lamb chris at chris-lamb.co.uk
Sun Aug 28 20:51:06 UTC 2016


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

lamby pushed a commit to branch master
in repository misc.

commit aef93426b391e49607e250f6f2e8b28a38e51d0f
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Aug 28 21:50:24 2016 +0100

    Use .str.format over %
---
 reports/bin/generate-draft | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/reports/bin/generate-draft b/reports/bin/generate-draft
index cc17d4d..59b5d13 100755
--- a/reports/bin/generate-draft
+++ b/reports/bin/generate-draft
@@ -224,8 +224,8 @@ def commits(week_start, week_end, project, path='.'):
         'git',
         'log',
         'origin/master',
-        '--since', '@%s'%week_start,
-        '--until',  '@%s'%week_end,
+        '--since', '@{}'.format(week_start),
+        '--until', '@{}'.format(week_end),
         '--pretty=format:%an\t%h\t%s',
         '--',
         path,

-- 
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