summaryrefslogtreecommitdiff
path: root/osprofiler/profiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'osprofiler/profiler.py')
-rw-r--r--osprofiler/profiler.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/osprofiler/profiler.py b/osprofiler/profiler.py
index 7949f0e..5406b39 100644
--- a/osprofiler/profiler.py
+++ b/osprofiler/profiler.py
@@ -22,7 +22,6 @@ import threading
from oslo_utils import reflection
from oslo_utils import uuidutils
-import six
from osprofiler import _utils as utils
from osprofiler import notifier
@@ -161,7 +160,7 @@ def trace(name, info=None, hide_args=False, hide_result=True,
except Exception as ex:
stop_info = {
"etype": reflection.get_class_name(ex),
- "message": six.text_type(ex)
+ "message": str(ex)
}
raise
else:
@@ -274,8 +273,7 @@ class TracedMeta(type):
Possible usage:
- >>> @six.add_metaclass(profiler.TracedMeta)
- >>> class RpcManagerClass(object):
+ >>> class RpcManagerClass(object, metaclass=profiler.TracedMeta):
>>> __trace_args__ = {'name': 'rpc',
>>> 'info': None,
>>> 'hide_args': False,