/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/smart/protocol.py

  • Committer: Vincent Ladeuil
  • Date: 2007-11-04 15:29:17 UTC
  • mfrom: (2961 +trunk)
  • mto: (2961.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 2962.
  • Revision ID: v.ladeuil+lp@free.fr-20071104152917-nrsumxpk3dikso2c
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
399
399
        while not line or line[-1] != '\n':
400
400
            # TODO: this is inefficient - but tuples are short.
401
401
            new_char = self._request.read_bytes(1)
 
402
            if new_char == '':
 
403
                # end of file encountered reading from server
 
404
                raise errors.ConnectionReset(
 
405
                    "please check connectivity and permissions",
 
406
                    "(and try -Dhpss if further diagnosis is required)")
402
407
            line += new_char
403
 
            assert new_char != '', "end of file reading from server."
404
408
        return line
405
409
 
406
410
    def query_version(self):