#NEWLINE# def get_set( self , flag , new ) : #NEWLINE# #INDENT# "\n        Return the boolean value of 'flag'. If 'new' is set,\n        the flag is updated, and the value before update is\n        returned.\n        " #NEWLINE# old = self . _is_set ( flag ) #NEWLINE# if ( new is True ) : #NEWLINE# #INDENT# self . _set ( flag ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( new is False ) : #NEWLINE# #INDENT# self . _clear ( flag ) #NEWLINE# #UNINDENT# #UNINDENT# return old