From 1b0119797ff3e02cbdc8881d048fe3f676fcd7a2 Mon Sep 17 00:00:00 2001 From: Graham Hayes Date: Wed, 4 Apr 2018 15:36:18 +0100 Subject: [PATCH] Move pep8 checks to py3 by default Change-Id: I0964970c1590658754ea59b394835dc1472b7292 --- contrib/zoneextractor.py | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/zoneextractor.py b/contrib/zoneextractor.py index 90fd941a6..48e4db5a6 100644 --- a/contrib/zoneextractor.py +++ b/contrib/zoneextractor.py @@ -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): diff --git a/tox.ini b/tox.ini index ec0f4aba6..40e231e4c 100644 --- a/tox.ini +++ b/tox.ini @@ -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 \