#NEWLINE# def _sign_error( self , bugs ) : #NEWLINE# #INDENT# if ( not bugs ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# seen = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for i in bugs : #NEWLINE# #INDENT# if ( ( i [ 'lnum' ] <= 0 ) or ( seen [ 'lnum' ] in seen ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# seen [ i [ 'lnum' ] ] = True #NEWLINE# sign_severity = ( 'Warning' if ( i [ 'type' ] == 'W' ) else 'Error' ) #NEWLINE# sign_subtype = i . get ( 'subtype' , '' ) #NEWLINE# sign_type = 'Linter{}{}' . format ( sign_subtype , sign_severity ) #NEWLINE# sign_id = int ( ( uuid . uuid4 ( ) . int >> 100 ) ) #NEWLINE# place_sign ( sign_id , i [ 'lnum' ] , sign_type , i [ 'bufnr' ] ) #NEWLINE# self . sign_ids [ self . bufnr ] . append ( sign_id )