#NEWLINE# def terminate_process( self , idf ) : #NEWLINE# #INDENT# ' Terminate a process by id ' #NEWLINE# try : #NEWLINE# #INDENT# p = self . q . pop ( idf ) #NEWLINE# p . terminate ( ) #NEWLINE# return p #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# return None