#NEWLINE# def line_type( self , line ) : #NEWLINE# #INDENT# 'Return the primary error type for the given line number.' #NEWLINE# if ( not self . all ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# line_type = None #NEWLINE# for highlight in self . all : #NEWLINE# #INDENT# if ( line_type == ERROR ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# _line_type = highlight . lines . get ( line ) #NEWLINE# if ( ( _line_type != WARNING ) and ( line_type == WARNING ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# line_type = _line_type #NEWLINE# #UNINDENT# return line_type