#NEWLINE# def _add_provider_extensions( self , provider ) : #NEWLINE# #INDENT# " Add a provider's extensions to the registry. " #NEWLINE# events = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( extension_point_id , extensions ) in self . _extensions . items ( ) : #NEWLINE# #INDENT# new = provider . get_extensions ( extension_point_id ) #NEWLINE# if ( len ( new ) > 0 ) : #NEWLINE# #INDENT# index = sum ( map ( len , extensions ) ) #NEWLINE# refs = self . _get_listener_refs ( extension_point_id ) #NEWLINE# events [ extension_point_id ] = ( refs , new [ : ] , index ) #NEWLINE# #UNINDENT# extensions . append ( new ) #NEWLINE# #UNINDENT# return events