64
63
raise TypeError('args must be byte strings, not %r' % (args,))
65
64
if type(body) is not str:
66
65
raise TypeError('body must be byte string, not %r' % (body,))
68
67
smart_protocol = protocol.SmartClientRequestProtocolOne(request)
69
68
smart_protocol.call_with_body_bytes((method, ) + args, body)
70
69
return smart_protocol.read_response_tuple()