mach: cleanup after dropping Python 2 support

Signed-off-by: David Heidelberg <david@ixit.cz>
This commit is contained in:
David Heidelberg 2021-05-11 11:54:36 +02:00
parent e8cb9f56e3
commit aa0484d76b
No known key found for this signature in database
GPG key ID: 60023FC4D3492072
2 changed files with 4 additions and 77 deletions

View file

@ -279,10 +279,10 @@ def bootstrap(topdir):
print('Current path:', topdir)
sys.exit(1)
# Ensure we are running Python 2.7+ or Python 3.5+. We put this check here so we generate a
# Ensure we are running Python 3.5+. 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 < (2, 7) or (sys.version_info >= (3, 0) and sys.version_info < (3, 5)):
print('Python2 (>=2.7) or Python3 (>=3.5) is required to run mach.')
if sys.version_info < (3, 5):
print('Python3 (>=3.5) is required to run mach.')
print('You are running Python', platform.python_version())
sys.exit(1)