Mercurial > hg
changeset 32125:efcaf6ab86f4
setup: sys.version_info always exists
It is documented as existing since Python 2.0, and empirically from
other OSS projects I maintain, there is no problem relying on its
existance.
author | Alex Gaynor <agaynor@mozilla.com> |
---|---|
date | Wed, 03 May 2017 09:41:55 -0400 |
parents | 8ac7ac714e92 |
children | e37fd5be0fed |
files | setup.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/setup.py Tue May 02 22:39:14 2017 -0700 +++ b/setup.py Wed May 03 09:41:55 2017 -0400 @@ -5,7 +5,7 @@ # 'python setup.py --help' for more options import sys, platform -if getattr(sys, 'version_info', (0, 0, 0)) < (2, 6, 0, 'final'): +if sys.version_info < (2, 6, 0, 'final'): raise SystemExit("Mercurial requires Python 2.6 or later.") if sys.version_info[0] >= 3: