summaryrefslogtreecommitdiff
path: root/osprofiler/web.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/web.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/web.py')
-rw-r--r--osprofiler/web.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/osprofiler/web.py b/osprofiler/web.py
index 20875b1..c83d68a 100644
--- a/osprofiler/web.py
+++ b/osprofiler/web.py
@@ -13,7 +13,6 @@
# License for the specific language governing permissions and limitations
# under the License.
-import six
import webob.dec
from osprofiler import _utils as utils
@@ -98,7 +97,7 @@ class WsgiMiddleware(object):
def _trace_is_valid(self, trace_info):
if not isinstance(trace_info, dict):
return False
- trace_keys = set(six.iterkeys(trace_info))
+ trace_keys = set(trace_info.keys())
if not all(k in trace_keys for k in _REQUIRED_KEYS):
return False
if trace_keys.difference(_REQUIRED_KEYS + _OPTIONAL_KEYS):