[diffoscope] 01/01: diffoscope/progress: Pass the fileobj to the print(..) function, not str.format. Thanks to Marius Gedminas <marius at gedmin.as>.

Chris Lamb chris at chris-lamb.co.uk
Wed Sep 28 18:07:02 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 1c90457be82e88166bafa973a55901c54f76a612
Author: Chris Lamb <lamby at debian.org>
Date:   Wed Sep 28 17:06:16 2016 +0100

    diffoscope/progress: Pass the fileobj to the print(..) function, not str.format. Thanks to Marius Gedminas <marius at gedmin.as>.
---
 diffoscope/progress.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/progress.py b/diffoscope/progress.py
index 15a569a..f59ace3 100644
--- a/diffoscope/progress.py
+++ b/diffoscope/progress.py
@@ -116,7 +116,7 @@ class StatusFD(object):
         self.fileobj = os.fdopen(fileno, 'w')
 
     def notify(self, current, total):
-        print('{}\t{}'.format(current, total, file=self.fileobj))
+        print('{}\t{}'.format(current, total), file=self.fileobj)
 
     def finish(self):
         pass

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


More information about the diffoscope mailing list