#NEWLINE# def is_suppressed( self , result ) : #NEWLINE# #INDENT# 'Returns True if we should suppress the given result for event' #NEWLINE# if ( not self . suppression_manager ) : #NEWLINE# #INDENT# logger . debug ( 'is_suppressed(): No suppress backend, so returning False' ) #NEWLINE# return False #NEWLINE# #UNINDENT# suppression_filter = self . suppression_manager . is_suppressed ( result . id ) #NEWLINE# if suppression_filter : #NEWLINE# #INDENT# suppression_filter . validate ( ) #NEWLINE# logger . debug ( "Suppressed %s with '%s' (%s) created at %s" , self . id , suppression_filter . regex , suppression_filter . rowkey , suppression_filter . created . isoformat ( ) ) #NEWLINE# #UNINDENT# return suppression_filter