diff --git a/setup.py b/setup.py index 3c14b0d9..83e170c5 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ 'crcmod', 'tornado>=4.0,<5.0', 'toro>=0.8,<0.9', - 'thriftrw>=0.3.3,<0.4.0', + 'thriftrw>=0.3.3,<0.4', 'threadloop>=0.5,<0.6', 'futures', ], diff --git a/tchannel/testing/vcr/cassette.py b/tchannel/testing/vcr/cassette.py index 0f5a9761..7fd62bb3 100644 --- a/tchannel/testing/vcr/cassette.py +++ b/tchannel/testing/vcr/cassette.py @@ -68,16 +68,6 @@ class Interaction(namedtuple('Interaction', 'request response')): """An interaction is a request-response pair.""" def to_primitive(self): - # import ipdb; ipdb.set_trace() - # from thriftrw.protocol import BinaryProtocol - # p = BinaryProtocol() - - if hasattr(self.request, 'to_primitive'): - return { - 'request': self.request.to_primitive(), - 'response': self.response.to_primitive(), - } - return { 'request': primitive(self.request, TType.STRUCT), 'response': primitive(self.response, TType.STRUCT),