contrib/check-commit
changeset 29164 91f35b1a34cf
parent 29163 bf7fd815b083
child 29716 37b6f0ec6241
--- a/contrib/check-commit	Fri May 13 02:11:57 2016 +0530
+++ b/contrib/check-commit	Fri May 13 02:13:14 2016 +0530
@@ -15,7 +15,7 @@
 #
 # See also: https://mercurial-scm.org/wiki/ContributingChanges
 
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
 
 import os
 import re
@@ -73,9 +73,9 @@
                     break
                 if not printed:
                     printed = True
-                    print "node: %s" % node
-                print "%d: %s" % (n, msg)
-                print " %s" % nonempty(l, last)[:-1]
+                    print("node: %s" % node)
+                print("%d: %s" % (n, msg))
+                print(" %s" % nonempty(l, last)[:-1])
                 if "BYPASS" not in os.environ:
                     exitcode = 1
                 del hits[0]