diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-05-31 18:34:52 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-05-31 18:34:52 -0400 |
commit | 372ef7cd5b2ddb1c89e5ad553cdd9a9566acc07f (patch) | |
tree | e6c7ffddf99dca4fc2ee2a24dba78c566170f932 /python/mach_bootstrap.py | |
parent | 591614347f9ca5568974861e82c0c918e51e2974 (diff) | |
download | servo-372ef7cd5b2ddb1c89e5ad553cdd9a9566acc07f.tar.gz servo-372ef7cd5b2ddb1c89e5ad553cdd9a9566acc07f.zip |
Clarify Python version checking conditional
Diffstat (limited to 'python/mach_bootstrap.py')
-rw-r--r-- | python/mach_bootstrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/mach_bootstrap.py b/python/mach_bootstrap.py index 8d7953d084e..e7ca0c9d02b 100644 --- a/python/mach_bootstrap.py +++ b/python/mach_bootstrap.py @@ -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) |