~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Robert Collins
  • Date: 2005-10-14 02:29:29 UTC
  • mfrom: (1454)
  • mto: This revision was merged to the branch mainline in revision 1456.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051014022929-43937d292327f618
MergeĀ fromĀ upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
def register_transport(prefix, klass, override=True):
32
32
    global _protocol_handlers
33
 
 
 
33
    # trace messages commented out because they're typically 
 
34
    # run during import before trace is set up
34
35
    if _protocol_handlers.has_key(prefix):
35
36
        if override:
36
 
            mutter('overriding transport: %s => %s' % (prefix, klass.__name__))
 
37
            ## mutter('overriding transport: %s => %s' % (prefix, klass.__name__))
37
38
            _protocol_handlers[prefix] = klass
38
39
    else:
39
 
        mutter('registering transport: %s => %s' % (prefix, klass.__name__))
 
40
        ## mutter('registering transport: %s => %s' % (prefix, klass.__name__))
40
41
        _protocol_handlers[prefix] = klass
41
42
 
42
43
class Transport(object):