53
56
raise TypeError('args must be byte strings, not %r' % (args,))
54
57
if type(body) is not str:
55
58
raise TypeError('body must be byte string, not %r' % (body,))
57
60
smart_protocol = protocol.SmartClientRequestProtocolOne(request)
58
61
smart_protocol.call_with_body_bytes((method, ) + args, body)
59
62
return smart_protocol.read_response_tuple()