#NEWLINE# @ contextmanager #NEWLINE# def register_plugins( * plugins ) : #NEWLINE# #INDENT# for plugin in plugin : #NEWLINE# #INDENT# plugin_pool . register_plugin ( plugin ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# ( yield ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# for plugin in plugins : #NEWLINE# #INDENT# plugin_pool . unregister_plugin ( plugin )