diff options
author | liyou01 <liyou01@inspur.com> | 2021-01-07 15:57:43 +0800 |
---|---|---|
committer | Cyril Roelandt <cyril@redhat.com> | 2022-05-25 04:42:06 +0200 |
commit | 5ff06df97fbd78f6781793c35801a4c989a515f1 (patch) | |
tree | e81f73b2d062ebccd0a3ed8e8ab20f545dffca5c /tools | |
parent | aeee48b561ba0d100663311c3ba94f0d128105aa (diff) | |
download | glance_store-5ff06df97fbd78f6781793c35801a4c989a515f1.tar.gz |
Remove Python 2 support
Python 2 has been deprecated for almost two years, and has not been
guaranteed to work with glance_store for a while. This patch removes all
traces of six, unicode strings and Python 2 tweaks.
Co-Authored-By: Cyril Roelandt <cyril@redhat.com>
Change-Id: Ifa78924d7ecf4f2d9a54c677888ab2926530c487
Diffstat (limited to 'tools')
-rw-r--r-- | tools/colorizer.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/colorizer.py b/tools/colorizer.py index d205eb0..d26df6f 100644 --- a/tools/colorizer.py +++ b/tools/colorizer.py @@ -42,7 +42,6 @@ """Display a subunit stream through a colorized unittest test runner.""" import heapq -import six import subunit import sys import unittest @@ -277,7 +276,7 @@ class SubunitTestResult(testtools.TestResult): self.stopTestRun() def stopTestRun(self): - for cls in list(six.iterkeys(self.results)): + for cls in self.results: self.writeTestCase(cls) self.stream.writeln() self.writeSlowTests() |