##// END OF EJS Templates
setup.py: use getattr instead of hasdattr
Augie Fackler -
r14973:5656cb5b default
parent child Browse files
Show More
@@ -5,7 +5,7 b''
5 # 'python setup.py --help' for more options
5 # 'python setup.py --help' for more options
6
6
7 import sys, platform
7 import sys, platform
8 if not hasattr(sys, 'version_info') or sys.version_info < (2, 4, 0, 'final'):
8 if getattr(sys, 'version_info', (0, 0, 0)) < (2, 4, 0, 'final'):
9 raise SystemExit("Mercurial requires Python 2.4 or later.")
9 raise SystemExit("Mercurial requires Python 2.4 or later.")
10
10
11 if sys.version_info[0] >= 3:
11 if sys.version_info[0] >= 3:
General Comments 0
You need to be logged in to leave comments. Login now