~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/medium.py

  • Committer: Martin Pool
  • Date: 2010-01-15 07:26:46 UTC
  • mto: This revision was merged to the branch mainline in revision 4974.
  • Revision ID: mbp@sourcefrog.net-20100115072646-y3r8fposq8gtgt5t
Make sure variables used in repr are set early in initialization

Show diffs side-by-side

added added

removed removed

Lines of Context:
749
749
        self._password = password
750
750
        self._port = port
751
751
        self._username = username
 
752
        # for the benefit of progress making a short description of this
 
753
        # transport
 
754
        self._scheme = 'bzr+ssh'
752
755
        # SmartClientStreamMedium stores the repr of this object in its
753
756
        # _DebugCounter so we have to store all the values used in our repr
754
757
        # method before calling the super init.
758
761
        self._vendor = vendor
759
762
        self._write_to = None
760
763
        self._bzr_remote_path = bzr_remote_path
761
 
        # for the benefit of progress making a short description of this
762
 
        # transport
763
 
        self._scheme = 'bzr+ssh'
764
764
 
765
765
    def __repr__(self):
766
766
        if self._port is None: