~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/medium.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-11 06:25:14 UTC
  • mfrom: (4100.1.3 trivial)
  • Revision ID: pqm@pqm.ubuntu.com-20090311062514-cuxe92b6jnavadru
(mbp) code cleanups and SmartSSHClientMedium repr

Show diffs side-by-side

added added

removed removed

Lines of Context:
738
738
        self._vendor = vendor
739
739
        self._write_to = None
740
740
        self._bzr_remote_path = bzr_remote_path
741
 
        if self._bzr_remote_path is None:
742
 
            symbol_versioning.warn(
743
 
                'bzr_remote_path is required as of bzr 0.92',
744
 
                DeprecationWarning, stacklevel=2)
745
 
            self._bzr_remote_path = os.environ.get('BZR_REMOTE_PATH', 'bzr')
 
741
 
 
742
    def __repr__(self):
 
743
        return "%s(connected=%r, username=%r, host=%r, port=%r)" % (
 
744
            self.__class__.__name__,
 
745
            self._connected,
 
746
            self._username,
 
747
            self._host,
 
748
            self._port)
746
749
 
747
750
    def _accept_bytes(self, bytes):
748
751
        """See SmartClientStreamMedium.accept_bytes."""