summaryrefslogtreecommitdiff
path: root/osprofiler/cmd/commands.py
diff options
context:
space:
mode:
authorwangzihao <wangzihao@yovole.com>2020-10-12 19:39:10 +0800
committerwangzihao <wangzihao@yovole.com>2020-12-17 17:51:56 +0800
commitadc39e86acb1c705d39e1abd908018e5e6b2f4c5 (patch)
treeff8645f151c63bf0cc9ee4197d42dc645bf9df63 /osprofiler/cmd/commands.py
parent2794b9828ccf0a8b1eafcc8dee4be1c3714c9b68 (diff)
downloadosprofiler-adc39e86acb1c705d39e1abd908018e5e6b2f4c5.tar.gz
Remove six
Remove six Replace the following items with Python 3 style code. - six.moves - six.StringIO - six.add_metaclass - six.string_types - six.binary_type - six.text_type - six.integer_types - six.PY3 - six.PY2 - six.iterkeys Change-Id: Id9f2076be1a6a2d99db5acb682df8bebe893de36
Diffstat (limited to 'osprofiler/cmd/commands.py')
-rw-r--r--osprofiler/cmd/commands.py6
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())