#NEWLINE# def __delitem__( self , name ) : #NEWLINE# #INDENT# if ( name not in self . initialized_providers ) : #NEWLINE# #INDENT# raise KeyError ( name ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# logger . info ( 'Terminating provider %s' , name ) #NEWLINE# self . initialized_providers [ name ] . terminate ( ) #NEWLINE# #UNINDENT# except ( requests . Timeout , socket . timeout ) : #NEWLINE# #INDENT# logger . error ( 'Provider %r timed out, improperly terminated' , name ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# logger . exception ( 'Provider %r terminated unexpectedly' , self ) #NEWLINE# #UNINDENT# del self . initialized_providers [ name ]