mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Clarify Python version checking conditional
This commit is contained in:
parent
591614347f
commit
372ef7cd5b
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ def bootstrap(topdir):
|
||||||
# Ensure we are running Python 2.7+. We put this check here so we generate a
|
# 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
|
# user-friendly error message rather than a cryptic stack trace on module
|
||||||
# import.
|
# 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('Python 2.7 or above (but not Python 3) is required to run mach.')
|
||||||
print('You are running Python', platform.python_version())
|
print('You are running Python', platform.python_version())
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue