diff options
author | Zuul <zuul@review.opendev.org> | 2021-10-04 18:32:28 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-10-04 18:32:28 +0000 |
commit | dccfd35c1d81883294eb83e2da91f80d4bd2c30a (patch) | |
tree | b95ded37ebf913314d2456d9ea4ca5177ec2d0ef /osprofiler/cmd/commands.py | |
parent | e475de6c67be2e3825e51895a6d1d86b1a576d45 (diff) | |
parent | adc39e86acb1c705d39e1abd908018e5e6b2f4c5 (diff) | |
download | osprofiler-dccfd35c1d81883294eb83e2da91f80d4bd2c30a.tar.gz |
Merge "Remove six"
Diffstat (limited to 'osprofiler/cmd/commands.py')
-rw-r--r-- | osprofiler/cmd/commands.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/osprofiler/cmd/commands.py b/osprofiler/cmd/commands.py index c4750a5..ab80c9e 100644 --- a/osprofiler/cmd/commands.py +++ b/osprofiler/cmd/commands.py @@ -19,7 +19,6 @@ import os from oslo_utils import encodeutils from oslo_utils import uuidutils import prettytable -import six from osprofiler.cmd import cliutils from osprofiler.drivers import base @@ -188,7 +187,4 @@ class TraceCommands(BaseCommand): for trace in traces: row = [trace[field] for field in fields] pretty_table.add_row(row) - if six.PY3: - print(encodeutils.safe_encode(pretty_table.get_string()).decode()) - else: - print(encodeutils.safe_encode(pretty_table.get_string())) + print(encodeutils.safe_encode(pretty_table.get_string()).decode()) |