~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Martin
  • Date: 2010-10-18 13:41:07 UTC
  • mto: This revision was merged to the branch mainline in revision 5508.
  • Revision ID: gzlist@googlemail.com-20101018134107-q23jhm0h5t3qpwdl
Tidy up hack for temporary landing on 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):
1568
 
    return _get_transport(base, possible_transports)
1569
 
 
1570
1567
def _get_transport(base, possible_transports=None):
1571
1568
    """Open a transport to access a URL or directory.
1572
1569
 
1633
1630
 
1634
1631
    return transport
1635
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
 
1636
1642
 
1637
1643
def _try_transport_factories(base, factory_list):
1638
1644
    last_err = None