servo: Merge #6234 - Clarify Python version checking conditional (from frewsxcv:patch-2); r=metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: ce3debbc82e14523657974d1f6110e22272a178e
This commit is contained in:
Corey Farwell
2015-05-31 19:08:45 -05:00
parent 9ca5d58dca
commit 00968c717d

View File

@@ -78,7 +78,7 @@ def bootstrap(topdir):
# Ensure we are running Python 2.7+. We put this check here so we generate a
# user-friendly error message rather than a cryptic stack trace on module
# import.
if sys.version_info[0] != 2 or sys.version_info[1] < 7:
if not (3, 0) > sys.version_info >= (2, 7):
print('Python 2.7 or above (but not Python 3) is required to run mach.')
print('You are running Python', platform.python_version())
sys.exit(1)