Commit 1b011979 authored by Graham Hayes's avatar Graham Hayes

Move pep8 checks to py3 by default

Change-Id: I0964970c1590658754ea59b394835dc1472b7292
parent 7a2adab5
......@@ -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):
......
......@@ -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 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment