~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-12 02:40:00 UTC
  • mfrom: (3990.3.3 request handler tests)
  • Revision ID: pqm@pqm.ubuntu.com-20090212024000-dvdhpm2mela5h6f7
Fix do_body NotImplementedError log spam,
        and remove a bit of test cruft. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
        
105
105
        Must return a SmartServerResponse.
106
106
        """
107
 
        raise NotImplementedError(self.do_body)
 
107
        if body_bytes != '':
 
108
            raise errors.SmartProtocolError('Request does not expect a body')
108
109
 
109
110
    def do_chunk(self, chunk_bytes):
110
111
        """Called with each body chunk if the request has a streamed body.