#NEWLINE# def delete( self , env_id , retries = 5 , retry_pause = 0.5 ) : #NEWLINE# #INDENT# env = self . get ( retries ) #NEWLINE# retry_number = 0 #NEWLINE# while env : #NEWLINE# #INDENT# if ( retry_number > retries ) : #NEWLINE# #INDENT# raise RuntimeError ( ( _ ( "Can't delete environment id: %s " ) % env_id ) ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . client . delete_by_id ( env_id ) #NEWLINE# #UNINDENT# except BaseException : #NEWLINE# #INDENT# time . sleep ( retry_pause ) #NEWLINE# #UNINDENT# env = self . get ( env_id ) #NEWLINE# retry_number += 1