Python 3 Fixes: Use print() not print
For Python 3 fixes, use print() instead of the python 2 "print" bareword syntax. Change-Id: Ib77544d111aab6a1bd52555bcbd1dad9955d0074
This commit is contained in:
committed by
Monty Taylor
parent
8fc762bc5e
commit
4c6a774419
@@ -68,7 +68,7 @@ class Merger(zuul.cmd.ZuulApp):
|
||||
try:
|
||||
signal.pause()
|
||||
except KeyboardInterrupt:
|
||||
print "Ctrl + C: asking merger to exit nicely...\n"
|
||||
print("Ctrl + C: asking merger to exit nicely...\n")
|
||||
self.exit_handler(signal.SIGINT, None)
|
||||
|
||||
|
||||
@@ -89,9 +89,7 @@ def main():
|
||||
f.close()
|
||||
os.unlink(test_fn)
|
||||
except Exception:
|
||||
print
|
||||
print "Unable to write to state directory: %s" % state_dir
|
||||
print
|
||||
print("\nUnable to write to state directory: %s\n" % state_dir)
|
||||
raise
|
||||
|
||||
if server.config.has_option('merger', 'pidfile'):
|
||||
|
||||
Reference in New Issue
Block a user