~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/transport_util.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-09 12:34:00 UTC
  • mfrom: (6056.2.5 option-registry)
  • Revision ID: pqm@pqm.ubuntu.com-20110809123400-x521f2j9jkxx8ze2
(vila) Introduce OptionRegistry (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
            fake_base, _from_transport=_from_transport)
78
78
        # The following is needed to minimize the effects of our trick above
79
79
        # while retaining the best compatibility.
80
 
        self._parsed_url.scheme = _hooked_scheme
81
 
        super(ConnectedTransport, self).__init__(str(self._parsed_url))
 
80
        self._scheme = _hooked_scheme
 
81
        base = self._unsplit_url(self._scheme,
 
82
                                 self._user, self._password,
 
83
                                 self._host, self._port,
 
84
                                 self._path)
 
85
        super(ConnectedTransport, self).__init__(base)
82
86
 
83
87
 
84
88
class ConnectionHookedTransport(InstrumentedTransport):