#NEWLINE# def error( self , line_number , offset , text , check ) : #NEWLINE# #INDENT# 'Report an error, according to options.' #NEWLINE# code = text [ : 4 ] #NEWLINE# if self . _ignore_code ( code ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( code in self . counters ) : #NEWLINE# #INDENT# self . counters [ code ] += 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . counters [ code ] = 1 #NEWLINE# self . messages [ code ] = text [ 5 : ] #NEWLINE# #UNINDENT# if ( code in check . expected ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( self . print_filename and ( not self . file_errors ) ) : #NEWLINE# #INDENT# print ( self . filename ) #NEWLINE# #UNINDENT# self . file_errors += 1 #NEWLINE# self . total_errors += 1 #NEWLINE# return code