#NEWLINE# def parse_message( self , message ) : #NEWLINE# #INDENT# '\n        Parse message object into standard elements of an error and return them.\n\n        ' #NEWLINE# error_message = message [ 'message' ] #NEWLINE# line = ( message [ 'line' ] - 1 ) #NEWLINE# col = message [ 'col' ] #NEWLINE# error = None #NEWLINE# warning = None #NEWLINE# if ( message [ 'type' ] == 'error' ) : #NEWLINE# #INDENT# error = True #NEWLINE# warning = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( message [ 'type' ] == 'warning' ) : #NEWLINE# #INDENT# error = False #NEWLINE# warning = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( message [ 'type' ] == 'info' ) : #NEWLINE# #INDENT# message = None #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# persist . debug ( 'message -- msg:"{}", line:{}, col:{}, error: {}, warning: {}, message_obj:{}' . format ( error_message , line , col , error , warning , message ) ) #NEWLINE# return ( message , line , col , error , warning , error_message , None )