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