~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/client.py

Rename 'setProtoAndMedium' to more accurate 'setProtoAndMediumRequest', add ABCs for Requesters and ResponseHandlers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
            request_encoder = protocol.ProtocolThreeRequester(request)
40
40
            response_handler = message.ConventionalResponseHandler()
41
41
            response_proto = protocol.ProtocolThreeDecoder(response_handler)
42
 
            response_handler.setProtoAndMedium(response_proto, request)
 
42
            response_handler.setProtoAndMediumRequest(response_proto, request)
43
43
        elif version == 2:
44
44
            request_encoder = protocol.SmartClientRequestProtocolTwo(request)
45
45
            response_handler = request_encoder