diff options
| author | Zuul <zuul@review.opendev.org> | 2021-03-08 16:02:59 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2021-03-08 16:02:59 +0000 |
| commit | 8e804292db6922516e8a6fd52d14dcd64396d00c (patch) | |
| tree | dc917fcfb5c55a13aec7f62afd2c7c1e436bbb3a /tools | |
| parent | d2b3351a57ae054cbd7cdef2c8e0bca5f22ae0b0 (diff) | |
| parent | cea1f674ae1ce545c0cac209b423ac9d626f0c68 (diff) | |
| download | python-cinderclient-8e804292db6922516e8a6fd52d14dcd64396d00c.tar.gz | |
Merge "Remove all usage of six library"
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/colorizer.py | 3 | ||||
| -rw-r--r-- | tools/install_venv.py | 3 | ||||
| -rwxr-xr-x | tools/lintstack.py | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/tools/colorizer.py b/tools/colorizer.py index 7824b8c..2a667b4 100755 --- a/tools/colorizer.py +++ b/tools/colorizer.py @@ -46,7 +46,6 @@ import subunit import sys import unittest -import six import testtools @@ -277,7 +276,7 @@ class NovaTestResult(testtools.TestResult): self.stopTestRun() def stopTestRun(self): - for cls in list(six.iterkeys(self.results)): + for cls in list(self.results.keys()): self.writeTestCase(cls) self.stream.writeln() self.writeSlowTests() diff --git a/tools/install_venv.py b/tools/install_venv.py index 03fe5af..4ff48a2 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -18,11 +18,10 @@ # License for the specific language governing permissions and limitations # under the License. +import configparser import os import sys -from six.moves import configparser - import install_venv_common as install_venv diff --git a/tools/lintstack.py b/tools/lintstack.py index 2697776..e0cfc28 100755 --- a/tools/lintstack.py +++ b/tools/lintstack.py @@ -16,13 +16,13 @@ """pylint error checking.""" +from io import StringIO import json import re import sys from pylint import lint from pylint.reporters import text -from six.moves import cStringIO as StringIO ignore_codes = [ # Note(maoy): E1103 is error code related to partial type inference |
