~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

Merge pt1 hooks branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1564
1564
        raise NotImplementedError(self.disconnect)
1565
1565
 
1566
1566
 
1567
 
def _get_transport(base, possible_transports=None):
 
1567
def get_transport(base, possible_transports=None):
1568
1568
    """Open a transport to access a URL or directory.
1569
1569
 
1570
1570
    :param base: either a URL or a directory name.
1630
1630
 
1631
1631
    return transport
1632
1632
 
1633
 
# GZ 2010-10-18: Temporary hack to put the real get_transport behind a layer
1634
 
#                if indirection so it can be safely overriden for the test
1635
 
#                suite. If you are reading this comment in the final 2.3
1636
 
#                release, phone me up and yell at me.
1637
 
def get_transport(base, possible_transports=None):
1638
 
    return _get_transport(base, possible_transports)
1639
 
 
1640
 
get_transport.__doc__ = _get_transport.__doc__
1641
 
 
1642
1633
 
1643
1634
def _try_transport_factories(base, factory_list):
1644
1635
    last_err = None