##// END OF EJS Templates
hghave: use print function...
Gregory Szorc -
r28283:54444499 default
parent child Browse files
Show More
@@ -3,6 +3,9 b''
3 3 if all features are there, non-zero otherwise. If a feature name is
4 4 prefixed with "no-", the absence of feature is tested.
5 5 """
6
7 from __future__ import print_function
8
6 9 import optparse
7 10 import os, sys
8 11 import hghave
@@ -12,7 +15,7 b' checks = hghave.checks'
12 15 def list_features():
13 16 for name, feature in sorted(checks.iteritems()):
14 17 desc = feature[1]
15 print name + ':', desc
18 print(name + ':', desc)
16 19
17 20 def test_features():
18 21 failed = 0
@@ -21,7 +24,7 b' def test_features():'
21 24 try:
22 25 check()
23 26 except Exception as e:
24 print "feature %s failed: %s" % (name, e)
27 print("feature %s failed: %s" % (name, e))
25 28 failed += 1
26 29 return failed
27 30
General Comments 0
You need to be logged in to leave comments. Login now