~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/medium.py

  • Committer: Martin Pool
  • Date: 2009-03-12 05:44:43 UTC
  • mfrom: (4124 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4144.
  • Revision ID: mbp@sourcefrog.net-20090312054443-rz5kodxh1cjjx2id
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
727
727
        :param vendor: An optional override for the ssh vendor to use. See
728
728
            bzrlib.transport.ssh for details on ssh vendors.
729
729
        """
730
 
        SmartClientStreamMedium.__init__(self, base)
731
730
        self._connected = False
732
731
        self._host = host
733
732
        self._password = password
734
733
        self._port = port
735
734
        self._username = username
 
735
        # SmartClientStreamMedium stores the repr of this object in its
 
736
        # _DebugCounter so we have to store all the values used in our repr
 
737
        # method before calling the super init.
 
738
        SmartClientStreamMedium.__init__(self, base)
736
739
        self._read_from = None
737
740
        self._ssh_connection = None
738
741
        self._vendor = vendor
739
742
        self._write_to = None
740
743
        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')
 
744
 
 
745
    def __repr__(self):
 
746
        return "%s(connected=%r, username=%r, host=%r, port=%r)" % (
 
747
            self.__class__.__name__,
 
748
            self._connected,
 
749
            self._username,
 
750
            self._host,
 
751
            self._port)
746
752
 
747
753
    def _accept_bytes(self, bytes):
748
754
        """See SmartClientStreamMedium.accept_bytes."""