#NEWLINE# @ contextmanager #NEWLINE# def context( self , kind ) : #NEWLINE# #INDENT# old_context = self . _context #NEWLINE# self . _context = kind #NEWLINE# try : #NEWLINE# #INDENT# ( yield ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# self . _context = old_context