#NEWLINE# def add_indices( self , element ) : #NEWLINE# #INDENT# if self . case . indices : #NEWLINE# #INDENT# indices = [ ] #NEWLINE# index_elem = safe_element ( 'index' ) #NEWLINE# for i in self . case . indices : #NEWLINE# #INDENT# indices . append ( self . get_index_element ( i ) ) #NEWLINE# #UNINDENT# indices . sort ( key = ( lambda elem : elem . tag ) ) #NEWLINE# for index in indices : #NEWLINE# #INDENT# index_elem . append ( index ) #NEWLINE# #UNINDENT# element . append ( index_elem )