remove dependency on Six
diff --git a/lib/py/src/protocol/TProtocol.py b/lib/py/src/protocol/TProtocol.py
index 339a283..bac54ae 100644
--- a/lib/py/src/protocol/TProtocol.py
+++ b/lib/py/src/protocol/TProtocol.py
@@ -21,10 +21,8 @@
from thrift.transport.TTransport import TTransportException
from ..compat import binary_to_str, str_to_binary
-import six
import sys
from itertools import islice
-from six.moves import zip
class TProtocolException(TException):
@@ -373,8 +371,8 @@
def writeContainerMap(self, val, spec):
ktype, kspec, vtype, vspec, _ = spec
self.writeMapBegin(ktype, vtype, len(val))
- for _ in zip(self._write_by_ttype(ktype, six.iterkeys(val), spec, kspec),
- self._write_by_ttype(vtype, six.itervalues(val), spec, vspec)):
+ for _ in zip(self._write_by_ttype(ktype, val.keys(), spec, kspec),
+ self._write_by_ttype(vtype, val.values(), spec, vspec)):
pass
self.writeMapEnd()