diff options
author | Bryan Quigley <bryan.quigley@canonical.com> | 2020-04-08 13:13:25 -0700 |
---|---|---|
committer | Bryan Quigley <bryan.quigley@canonical.com> | 2020-04-09 11:22:44 -0700 |
commit | 33bcb9a5de0d544abb482e06fc363e57507924b2 (patch) | |
tree | 1547bb4fa6add19180d26a3b8597fa34c1b1d6ef /tests/plugin_tests.py | |
parent | 902f1269500808c1a780eec46e2dc4f34be876fd (diff) | |
download | sos-33bcb9a5de0d544abb482e06fc363e57507924b2.tar.gz |
[global] Drop use of python six and other 2.X bits
Resolves: #2006
Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
Diffstat (limited to 'tests/plugin_tests.py')
-rw-r--r-- | tests/plugin_tests.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/plugin_tests.py b/tests/plugin_tests.py index 207cb724..c88534d8 100644 --- a/tests/plugin_tests.py +++ b/tests/plugin_tests.py @@ -10,12 +10,7 @@ import os import tempfile import shutil -# PYCOMPAT -import six -try: - from StringIO import StringIO -except: - from io import StringIO +from io import StringIO from sos.report.plugins import Plugin, regex_findall, _mangle_command from sos.archive import TarFileArchive @@ -29,7 +24,7 @@ def j(filename): def create_file(size, dir=None): f = tempfile.NamedTemporaryFile(delete=False, dir=dir) - f.write(six.b("*" * size * 1024 * 1024)) + f.write(b"*" * size * 1024 * 1024) f.flush() f.close() return f.name |