From 71526385452505b20c3215ae3f6e54030aaa8c56 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 3 May 2017 09:41:55 -0400 Subject: [PATCH] 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. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 93d59919c0..d60c1feab9 100644 --- a/setup.py +++ b/setup.py @@ -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: