[Reproducible-commits] [diffoscope] 01/09: Use the print function everywhere

Jérémy Bobbio lunar at moszumanska.debian.org
Fri Sep 18 10:54:39 UTC 2015


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

lunar pushed a commit to branch master
in repository diffoscope.

commit 2256e8f2ecd7bf5a472ba9325956510256eb3573
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Fri Sep 18 11:37:00 2015 +0200

    Use the print function everywhere
    
    In Python 3, print is no longer a statement:
    https://docs.python.org/3.5/whatsnew/3.0.html#print-is-a-function
---
 diffoscope/changes.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/diffoscope/changes.py b/diffoscope/changes.py
index e9afa7d..43c4836 100644
--- a/diffoscope/changes.py
+++ b/diffoscope/changes.py
@@ -37,6 +37,8 @@ code is copyright (c) Jonny Lamb, and is used by dput, rather then created as
 a result of it. Thank you Jonny.
 """
 
+from __future__ import print_function
+
 __author__ = 'Jonny Lamb'
 __copyright__ = 'Copyright © 2008 Jonny Lamb, Copyright © 2010 Jan Dittberner'
 __license__ = 'MIT'
@@ -257,7 +259,7 @@ class Changes(object):
              self.get_changes_file()],
             shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
         gpg_output, gpg_output_stderr = pipe.communicate()
-        print gpg_output
+        print(gpg_output)
 
         if pipe.returncode != 0:
             raise ChangesFileException(

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



More information about the Reproducible-commits mailing list