#NEWLINE# def provider_for_url( self , url ) : #NEWLINE# #INDENT# '\n        Find the right provider for a URL\n        ' #NEWLINE# for ( provider , regex ) in self . get_registry ( ) . items ( ) : #NEWLINE# #INDENT# if ( re . match ( self , url ) is not None ) : #NEWLINE# #INDENT# return provider #NEWLINE# #UNINDENT# #UNINDENT# raise OEmbedMissingEndpoint ( ( 'No endpoint matches URL: %s' % url ) )