#NEWLINE# def register_transport( self , transport ) : #NEWLINE# #INDENT# if ( ( not hasattr ( transport , 'scheme' ) ) or ( not hasattr ( transport . scheme , '__iter__' ) ) ) : #NEWLINE# #INDENT# raise AttributeError ( 'Transport %s must have a scheme list' , transport . __class__ . __name__ ) #NEWLINE# #UNINDENT# for scheme in transport . scheme : #NEWLINE# #INDENT# self . register_scheme ( scheme , transport )