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