Bug 1408365 - Enable flake8/py2/py3 linters on python/mozboot. r=ahal

MozReview-Commit-ID: 3koZq509bjP
This commit is contained in:
Steve Armand
2017-10-13 23:33:00 -04:00
parent 0254a57b6a
commit bc0b25b8f4
21 changed files with 102 additions and 60 deletions

View File

@@ -13,12 +13,14 @@
# If we add unicode_literals, optparse breaks on Python 2.6.1 (which is needed
# to support OS X 10.6).
from __future__ import print_function
from __future__ import absolute_import, print_function
WRONG_PYTHON_VERSION_MESSAGE = '''
Bootstrap currently only runs on Python 2.7 or Python 2.6. Please try re-running with python2.7 or python2.6.
Bootstrap currently only runs on Python 2.7 or Python 2.6.
Please try re-running with python2.7 or python2.6.
If these aren't available on your system, you may need to install them. Look for a "python2" or "python27" package in your package manager.
If these aren't available on your system, you may need to install them.
Look for a "python2" or "python27" package in your package manager.
'''
import sys