From 839813a84c3d63ca44d2721f6cb39b79c489195a Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 17 Oct 2016 16:20:35 +1300 Subject: mitmproxy: zap six --- mitmproxy/stateobject.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mitmproxy/stateobject.py') diff --git a/mitmproxy/stateobject.py b/mitmproxy/stateobject.py index 5e4ae6e3..a38315c1 100644 --- a/mitmproxy/stateobject.py +++ b/mitmproxy/stateobject.py @@ -1,6 +1,5 @@ from __future__ import absolute_import, print_function, division -import six from typing import Any from typing import List @@ -34,7 +33,7 @@ class StateObject(netlib.basetypes.Serializable): Retrieve object state. """ state = {} - for attr, cls in six.iteritems(self._stateobject_attributes): + for attr, cls in self._stateobject_attributes.items(): val = getattr(self, attr) if val is None: state[attr] = None @@ -51,7 +50,7 @@ class StateObject(netlib.basetypes.Serializable): Load object state from data returned by a get_state call. """ state = state.copy() - for attr, cls in six.iteritems(self._stateobject_attributes): + for attr, cls in self._stateobject_attributes.items(): val = state.pop(attr) if val is None: setattr(self, attr, val) -- cgit v1.2.3