summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-03-08 16:02:59 +0000
committerGerrit Code Review <review@openstack.org>2021-03-08 16:02:59 +0000
commit8e804292db6922516e8a6fd52d14dcd64396d00c (patch)
treedc917fcfb5c55a13aec7f62afd2c7c1e436bbb3a /tools
parentd2b3351a57ae054cbd7cdef2c8e0bca5f22ae0b0 (diff)
parentcea1f674ae1ce545c0cac209b423ac9d626f0c68 (diff)
downloadpython-cinderclient-8e804292db6922516e8a6fd52d14dcd64396d00c.tar.gz
Merge "Remove all usage of six library"
Diffstat (limited to 'tools')
-rwxr-xr-xtools/colorizer.py3
-rw-r--r--tools/install_venv.py3
-rwxr-xr-xtools/lintstack.py2
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