Merge "Move pep8 checks to py3 by default"

This commit is contained in:
Zuul 2018-04-18 03:12:38 +00:00 committed by Gerrit Code Review
commit af6a4cf3a8
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class Zone:
self.to_file(sys.stdout)
def to_file(self, f):
if type(f) is file:
if type(f) is 'file':
fd = f
elif type(f) is str:
if os.path.isdir(f):

View File

@ -67,7 +67,7 @@ commands = sh tools/pretty_flake8.sh
[testenv:pep8]
deps = -r{toxinidir}/test-requirements.txt
basepython = python2.7
basepython = python3
commands = sh tools/pretty_flake8.sh
{[testenv:bandit]commands}
doc8 README.rst releasenotes/source doc/source rally-jobs \