#NEWLINE# def prepare( self ) : #NEWLINE# #INDENT# new_patterns = [ ] #NEWLINE# for ( tag , cfg ) in self [ 'group_by' ] . items ( ) : #NEWLINE# #INDENT# if tag . endswith ( '=' ) : #NEWLINE# #INDENT# new_patterns . append ( tag ) #NEWLINE# self [ 'group_by' ] [ tag [ : ( - 1 ) ] ] = cfg #NEWLINE# del self [ 'group_by' ] [ tag ] #NEWLINE# #UNINDENT# #UNINDENT# new_patterns . extend ( self [ 'patterns' ] ) #NEWLINE# self [ 'patterns' ] = new_patterns