#NEWLINE# @ classmethod #NEWLINE# def _ProcessExitCode_from_raw( cls , exitcode ) : #NEWLINE# #INDENT# if ( not ( 0 <= exitcode < ( 2 ** 16 ) ) ) : #NEWLINE# #INDENT# raise ValueError ( ( 'invalid exitcode ' + str ( exitcode ) ) ) #NEWLINE# #UNINDENT# exitsignal = ( exitcode & 127 ) #NEWLINE# returnvalue = ( exitcode >> 8 ) #NEWLINE# if ( exitsignal == 0 ) : #NEWLINE# #INDENT# exitsignal = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert ( returnvalue == 0 ) , ( ( ( 'returnvalue ' + str ( returnvalue ) ) + ', although exitsignal is ' ) + str ( exitsignal ) ) #NEWLINE# returnvalue = None #NEWLINE# #UNINDENT# return cls ( exitcode , returnvalue , exitsignal )