# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2016-05-12 20:43:14 # Node ID 91f35b1a34cf4203a9b92e1ee241fcbd1881cc0e # Parent bf7fd815b083dc6005b99b94a31850a2050088d7 py3: make contrib/check-commit use print_function diff --git a/contrib/check-commit b/contrib/check-commit --- a/contrib/check-commit +++ b/contrib/check-commit @@ -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 @@ def checkcommit(commit, node=None): 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]