~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:17:36 UTC
  • mfrom: (1185.16.34)
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051014021736-7230e59066856096
MergeĀ fromĀ Martin.

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):