/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/transport/__init__.py

  • Committer: Martin
  • Date: 2018-11-17 16:53:10 UTC
  • mto: This revision was merged to the branch mainline in revision 7186.
  • Revision ID: gzlist@googlemail.com-20181117165310-iti8yu4xba2d7p3j
Fix E71* lint errors

Mostly moving nots around and a few equality to idenity check changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
 
135
135
 
136
136
def register_lazy_transport(prefix, module, classname):
137
 
    if not prefix in transport_list_registry:
 
137
    if prefix not in transport_list_registry:
138
138
        register_transport_proto(prefix)
139
139
    transport_list_registry.register_lazy_transport_provider(
140
140
        prefix, module, classname)
141
141
 
142
142
 
143
143
def register_transport(prefix, klass):
144
 
    if not prefix in transport_list_registry:
 
144
    if prefix not in transport_list_registry:
145
145
        register_transport_proto(prefix)
146
146
    transport_list_registry.register_transport_provider(prefix, klass)
147
147