#NEWLINE# def _group_changes( cur , wanted , remove = False ) : #NEWLINE# #INDENT# '\n    Determine if the groups need to be changed\n    ' #NEWLINE# old = set ( cur ) #NEWLINE# new = set ( wanted ) #NEWLINE# if ( ( remove and ( old != new ) ) or ( ( not remove ) and ( not new . issubset ( old ) ) ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False