#NEWLINE# def _remove_contract_by_hash( self , contract_hash ) : #NEWLINE# #INDENT# with self . contracts_lock : #NEWLINE# #INDENT# if ( contract_hash in self . contracts ) : #NEWLINE# #INDENT# self . _remove_contract ( self . contracts [ contract_hash ] )