#NEWLINE# def get_index( self , op ) : #NEWLINE# #INDENT# indexes = self . get_indexes ( ) #NEWLINE# for index in indexes : #NEWLINE# #INDENT# if ( op in index . operations ) : #NEWLINE# #INDENT# return index #NEWLINE# #UNINDENT# #UNINDENT# raise ValueError ( ( 'Operation %s is not supported by an index.' % op ) )