[jhbuild] Convert some missed print statements



commit cdcf93e0d0807b51923c324a42cfe8bdb4d08abf
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Sun Sep 22 10:18:01 2019 +0200

    Convert some missed print statements
    
    These didn't trigger errors because they are valid in python 2 and 3.
    This converts them to print() function calls.

 jhbuild/commands/__init__.py  | 2 +-
 jhbuild/commands/info.py      | 4 +++-
 jhbuild/frontends/terminal.py | 2 +-
 jhbuild/main.py               | 2 +-
 4 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/jhbuild/commands/__init__.py b/jhbuild/commands/__init__.py
index 060e2517..522142db 100644
--- a/jhbuild/commands/__init__.py
+++ b/jhbuild/commands/__init__.py
@@ -144,7 +144,7 @@ def print_help():
     commands.sort()
     for name, description in commands:
         uprint('  %-15s %s' % (name, description))
-    print
+    print()
     uprint(_('For more information run "jhbuild <command> --help"'))
 
 # handle registration of new commands
diff --git a/jhbuild/commands/info.py b/jhbuild/commands/info.py
index 9fd02b57..e6df039d 100644
--- a/jhbuild/commands/info.py
+++ b/jhbuild/commands/info.py
@@ -17,6 +17,8 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
+from __future__ import print_function
+
 import time
 
 from optparse import make_option
@@ -146,6 +148,6 @@ class cmd_info(Command):
         if before:
             uprint(_('Before:'), ', '.join(before))
 
-        print
+        print()
 
 register_command(cmd_info)
diff --git a/jhbuild/frontends/terminal.py b/jhbuild/frontends/terminal.py
index 68d296d0..74bf31e5 100644
--- a/jhbuild/frontends/terminal.py
+++ b/jhbuild/frontends/terminal.py
@@ -339,7 +339,7 @@ class TerminalBuildScript(buildscript.BuildScript):
         if not self.config.interact:
             return 'fail'
         while True:
-            print
+            print()
             uprint('  [1] %s' % _('Rerun phase %s') % phase)
             if nextphase:
                 uprint('  [2] %s' % _('Ignore error and continue to %s') % nextphase)
diff --git a/jhbuild/main.py b/jhbuild/main.py
index 9ac27de5..81a38959 100644
--- a/jhbuild/main.py
+++ b/jhbuild/main.py
@@ -42,7 +42,7 @@ class LoggingFormatter(logging.Formatter):
 
 def print_help(parser):
     parser.print_help()
-    print
+    print()
     jhbuild.commands.print_help()
     parser.exit()
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]