##// END OF EJS Templates
run-tests: introduce PYTHON3 boolean constant (issue4668)...
Augie Fackler -
r25157:a8d22895 default
parent child Browse files
Show More
@@ -79,7 +79,10 b' except ImportError:'
79 processlock = threading.Lock()
79 processlock = threading.Lock()
80
80
81 if sys.version_info > (3, 0, 0):
81 if sys.version_info > (3, 0, 0):
82 PYTHON3 = True
82 xrange = range # we use xrange in one place, and we'd rather not use range
83 xrange = range # we use xrange in one place, and we'd rather not use range
84 else:
85 PYTHON3 = False
83
86
84 def checkportisavailable(port):
87 def checkportisavailable(port):
85 """return true if a port seems free to bind on localhost"""
88 """return true if a port seems free to bind on localhost"""
General Comments 0
You need to be logged in to leave comments. Login now