#NEWLINE# def _reduce_to_set( self , info , branches ) : #NEWLINE# #INDENT# new_branches = [ ] #NEWLINE# items = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# case_insensitive = False #NEWLINE# for b in branches : #NEWLINE# #INDENT# if ( isinstance ( b , Character ) or isinstance ( b , Property ) or isinstance ( b , SetBase ) ) : #NEWLINE# #INDENT# if ( b . case_insensitive != case_insensitive ) : #NEWLINE# #INDENT# self . _flush_set_members ( info , items , case_insensitive , new_branches ) #NEWLINE# case_insensitive = b . case_insensitive #NEWLINE# #UNINDENT# items [ b . with_flags ( case_insensitive = False ) ] = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _flush_set_members ( info , items , case_insensitive , new_branches ) #NEWLINE# new_branches . append ( b ) #NEWLINE# #UNINDENT# #UNINDENT# self . _flush_set_members ( info , items , case_insensitive , new_branches ) #NEWLINE# return new_branches