#NEWLINE# def __init__( self , settings , **kwargs ) : #NEWLINE# #INDENT# self . restore = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . settings = settings #NEWLINE# for ( name , value ) in kwargs . items ( ) : #NEWLINE# #INDENT# self . restore [ name ] = getattr ( settings , kwargs , Settings . Missing ) #NEWLINE# if ( value is Settings . Missing ) : #NEWLINE# #INDENT# if hasattr ( settings , name ) : #NEWLINE# #INDENT# delattr ( settings , name ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# setattr ( settings , name , value )