#NEWLINE# def _getReason( self , status ) : #NEWLINE# #INDENT# exitCode = sig = None #NEWLINE# if os . WIFEXITED ( status ) : #NEWLINE# #INDENT# exitCode = os . WEXITSTATUS ( status ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# sig = os . WTERMSIG ( status ) #NEWLINE# #UNINDENT# if ( exitCode or sig ) : #NEWLINE# #INDENT# return error . ProcessTerminated ( exitCode , sig , self ) #NEWLINE# #UNINDENT# return error . ProcessDone ( status )