diff options
author | wangzihao <wangzihao@yovole.com> | 2020-10-12 19:39:10 +0800 |
---|---|---|
committer | wangzihao <wangzihao@yovole.com> | 2020-12-17 17:51:56 +0800 |
commit | adc39e86acb1c705d39e1abd908018e5e6b2f4c5 (patch) | |
tree | ff8645f151c63bf0cc9ee4197d42dc645bf9df63 /doc/source/user/api.rst | |
parent | 2794b9828ccf0a8b1eafcc8dee4be1c3714c9b68 (diff) | |
download | osprofiler-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 'doc/source/user/api.rst')
-rw-r--r-- | doc/source/user/api.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/source/user/api.rst b/doc/source/user/api.rst index c449158..03111e2 100644 --- a/doc/source/user/api.rst +++ b/doc/source/user/api.rst @@ -39,8 +39,7 @@ Five ways to add a new trace point. def _traced_only_if_trace_private_true(self): pass - @six.add_metaclass(profiler.TracedMeta) - class RpcManagerClass(object): + class RpcManagerClass(object, metaclass=profiler.TracedMeta): __trace_args__ = {'name': 'rpc', 'info': None, 'hide_args': False, |