зеркало из https://github.com/mozilla/gecko-dev.git
eced3471fc
This fixes a bug which can happen when the default version of python differs from the version of python used with mach. For example, mach explicitly looks for python2.7. This means running |mach lint -l flake8| should also run flake8 with version 2.7. But if the default is python3, and flake8 is also installed there, the subprocess call that invokes flake8 will run under python3. This can lead to errors like "undefined name 'basestring'" and other 2to3 gotchas. This patch ensures that we run: python2.7 -m flake8 which explicitly runs flake8 against the same interpreter as mach, no matter the default. MozReview-Commit-ID: HSuMzDsAvsW --HG-- extra : rebase_source : d39f97ed0f82f4d2c81f044ef1f7dad0953a3d8d |
||
---|---|---|
.. | ||
__init__.py | ||
check_compat.py | ||
compat.py | ||
flake8.py | ||
flake8_requirements.txt |