mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
py3: make contrib/check-commit use print_function
This commit is contained in:
parent
83f98391f1
commit
549af99ee9
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user