#NEWLINE# def build( self , result , errors ) : #NEWLINE# #INDENT# if ( not isinstance ( result , Message ) ) : #NEWLINE# #INDENT# result = Message ( result ) #NEWLINE# #UNINDENT# if errors : #NEWLINE# #INDENT# result . success = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# result . success = True #NEWLINE# #UNINDENT# result . _errors = errors #NEWLINE# return result