~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Vincent Ladeuil
  • Date: 2011-01-27 15:58:36 UTC
  • mfrom: (5609.2.5 2.3)
  • mto: This revision was merged to the branch mainline in revision 5635.
  • Revision ID: v.ladeuil+lp@free.fr-20110127155836-hoyxs53z42jh3ezm
Merge 2.3 into trunk

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