##// END OF EJS Templates
py3: make contrib/check-commit use print_function
Pulkit Goyal -
r29164:91f35b1a default
parent child Browse files
Show More
@@ -15,7 +15,7 b''
15 #
15 #
16 # See also: https://mercurial-scm.org/wiki/ContributingChanges
16 # See also: https://mercurial-scm.org/wiki/ContributingChanges
17
17
18 from __future__ import absolute_import
18 from __future__ import absolute_import, print_function
19
19
20 import os
20 import os
21 import re
21 import re
@@ -73,9 +73,9 b' def checkcommit(commit, node=None):'
73 break
73 break
74 if not printed:
74 if not printed:
75 printed = True
75 printed = True
76 print "node: %s" % node
76 print("node: %s" % node)
77 print "%d: %s" % (n, msg)
77 print("%d: %s" % (n, msg))
78 print " %s" % nonempty(l, last)[:-1]
78 print(" %s" % nonempty(l, last)[:-1])
79 if "BYPASS" not in os.environ:
79 if "BYPASS" not in os.environ:
80 exitcode = 1
80 exitcode = 1
81 del hits[0]
81 del hits[0]
General Comments 0
You need to be logged in to leave comments. Login now