~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-08-30 07:47:38 UTC
  • mfrom: (5394.2.1 integration2)
  • Revision ID: pqm@pqm.ubuntu.com-20100830074738-ymqwum541fi8b4sr
(vila) Fix most of the leaking tests (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1286
1286
        # should be asked to ConnectedTransport only.
1287
1287
        return None
1288
1288
 
 
1289
    def disconnect(self):
 
1290
        # This is really needed for ConnectedTransport only, but it's easier to
 
1291
        # have Transport do nothing than testing that the disconnect should be
 
1292
        # asked to ConnectedTransport only.
 
1293
        pass
 
1294
 
1289
1295
    def _redirected_to(self, source, target):
1290
1296
        """Returns a transport suitable to re-issue a redirected request.
1291
1297
 
1550
1556
            transport = self.__class__(other_base, _from_transport=self)
1551
1557
        return transport
1552
1558
 
 
1559
    def disconnect(self):
 
1560
        """Disconnect the transport.
 
1561
 
 
1562
        If and when required the transport willl reconnect automatically.
 
1563
        """
 
1564
        raise NotImplementedError(self.disconnect)
 
1565
 
1553
1566
 
1554
1567
def get_transport(base, possible_transports=None):
1555
1568
    """Open a transport to access a URL or directory.