Mercurial > hg-stable
changeset 29164:91f35b1a34cf
py3: make contrib/check-commit use print_function
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 13 May 2016 02:13:14 +0530 |
parents | bf7fd815b083 |
children | a212ca70205c |
files | contrib/check-commit |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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]