~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: 2008-12-09 02:34:52 UTC
  • mfrom: (3882.1.2 277048-transport-registry)
  • Revision ID: pqm@pqm.ubuntu.com-20081209023452-12dbzcwzxrt1xee3
(mbp) Don't call iteritems on transport_list_registry, because it may change during iteration

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
def _get_transport_modules():
85
85
    """Return a list of the modules providing transports."""
86
86
    modules = set()
87
 
    for prefix, factory_list in transport_list_registry.iteritems():
 
87
    for prefix, factory_list in transport_list_registry.items():
88
88
        for factory in factory_list:
89
89
            if hasattr(factory, "_module_name"):
90
90
                modules.add(factory._module_name)
1587
1587
                    possible_transports.append(t_same_connection)
1588
1588
                return t_same_connection
1589
1589
 
1590
 
    for proto, factory_list in transport_list_registry.iteritems():
 
1590
    for proto, factory_list in transport_list_registry.items():
1591
1591
        if proto is not None and base.startswith(proto):
1592
1592
            transport, last_err = _try_transport_factories(base, factory_list)
1593
1593
            if transport: