#NEWLINE# @ classmethod #NEWLINE# def filtered_on( cls , query , tag ) : #NEWLINE# #INDENT# '\n        does the given query filter on given tag? if so return first filter\n        ' #NEWLINE# for cond in query [ 'ast' ] : #NEWLINE# #INDENT# if ( cond [ 0 ] . startswith ( 'match_tag' ) and ( cond [ 1 ] == query ) ) : #NEWLINE# #INDENT# return cond #NEWLINE# #UNINDENT# #UNINDENT# return False