#NEWLINE# def __exit__( self , exc_type , exc_value , exc_traceback ) : #NEWLINE# #INDENT# 'Sets the currently in-scope instance of this class to its previous value.' #NEWLINE# cls = type ( self ) #NEWLINE# cls . _contexts . current [ cls . __name__ ] = self . __previous_instances . pop ( )