~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-08-14 04:22:50 UTC
  • mfrom: (3606.4.1 hpss-http-bug)
  • Revision ID: pqm@pqm.ubuntu.com-20080814042250-v7qws60l3fjwelb1
(spiv) Fix a regression in bzr+http:// where http wasn't implementing
        a necessary function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
555
555
        """See SmartClientMediumRequest._read_bytes."""
556
556
        return self._response_body.read(count)
557
557
 
 
558
    def _read_line(self):
 
559
        line, excess = medium._get_line(self._response_body.read)
 
560
        if excess != '':
 
561
            raise AssertionError(
 
562
                '_get_line returned excess bytes, but this mediumrequest '
 
563
                'cannot handle excess. (%r)' % (excess,))
 
564
        return line
 
565
 
558
566
    def _finished_reading(self):
559
567
        """See SmartClientMediumRequest._finished_reading."""
560
568
        pass