selftest/format_subunit_json: py3 print()
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sat, 27 Oct 2018 21:50:07 +0000 (10:50 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 1 Nov 2018 04:08:09 +0000 (05:08 +0100)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
selftest/format-subunit-json

index d44918c75241b6e5accbc047585d1aa8fc3850da..e612962e322c58cda44fee22e99da99532cf93c7 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright (C) 2008-2010 Jelmer Vernooij <jelmer@samba.org>
 # Copyright (C) 2016 Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
 # Published under the GNU GPL, v3 or later
-
+from __future__ import print_function
 import optparse
 import os
 import signal
@@ -42,9 +42,9 @@ def main():
     f = open(fn, 'w')
     json_formatter(sys.stdin, f)
     f.close()
-    print
-    print "A JSON file summarising these tests performance found in:"
-    print " ", fn
+    print()
+    print("A JSON file summarising these tests performance found in:")
+    print(" ", fn)
 
 
 def handle_sigint(sig, stack):