summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChaozhe.Chen <chaozhe.chen@easystack.cn>2016-02-09 17:00:30 +0800
committerChaozhe.Chen <chaozhe.chen@easystack.cn>2016-02-09 20:28:30 +0800
commit9e60e4a592011228bbf4ddacf96afbee2ab63ea6 (patch)
tree031afe7acf0fc8234312db429b11fec9d742e1f9 /tools
parentbdeab3af0ed92a108fdc4a9625ff0c9475cb3826 (diff)
downloadpython-cinderclient-9e60e4a592011228bbf4ddacf96afbee2ab63ea6.tar.gz
Fix some flake8 violations
1. Wrong use of 'noqa'. "# flake8: noqa" option disables all checks for the whole file. 2. Remove exclusion of 'tools' and '*openstack/common*' in flake8 and fix the violations. Change-Id: I153e992ffd6a80e70a99d7066c503c34326c93ab Closes-bug: #1540254
Diffstat (limited to 'tools')
-rwxr-xr-xtools/colorizer.py4
-rw-r--r--tools/install_venv.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/colorizer.py b/tools/colorizer.py
index ebdd236..7824b8c 100755
--- a/tools/colorizer.py
+++ b/tools/colorizer.py
@@ -110,7 +110,7 @@ class _Win32Colorizer(object):
win32console.FOREGROUND_INTENSITY)
self.stream = stream
self.screenBuffer = win32console.GetStdHandle(
- win32console.STD_OUT_HANDLE)
+ win32console.STD_OUT_HANDLE)
self._colors = {
'normal': red | green | blue,
'red': red | bold,
@@ -266,7 +266,7 @@ class NovaTestResult(testtools.TestResult):
if not self.last_written or (self._now() - time).total_seconds() > 2.0:
diff = 3.0
while diff > 2.0:
- classes =list(self.results)
+ classes = list(self.results)
oldest = min(classes, key=lambda x: self.last_time[x])
diff = (self._now() - self.last_time[oldest]).total_seconds()
self.writeTestCase(oldest)
diff --git a/tools/install_venv.py b/tools/install_venv.py
index cc21843..1dab63e 100644
--- a/tools/install_venv.py
+++ b/tools/install_venv.py
@@ -22,7 +22,7 @@ import ConfigParser
import os
import sys
-import install_venv_common as install_venv # flake8: noqa
+import install_venv_common as install_venv
def print_help(project, venv, root):
@@ -42,7 +42,7 @@ def print_help(project, venv, root):
$ %(root)s/tools/with_venv.sh <your command>
"""
- print help % dict(project=project, venv=venv, root=root)
+ print (help % dict(project=project, venv=venv, root=root))
def main(argv):