#NEWLINE# def filter_stacks( self , collector ) : #NEWLINE# #INDENT# stack_counts = ast . literal_eval ( PlopFormatter ( ) . format ( collector ) ) #NEWLINE# counts = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( stack , count ) in six . iteritems ( stack_counts ) : #NEWLINE# #INDENT# filtered_stack = [ frame [ 2 ] for frame in stack if frame [ 0 ] . endswith ( 'collector_test.py' ) ] #NEWLINE# if filtered_stack : #NEWLINE# #INDENT# counts [ tuple ( filtered_stack ) ] = count #NEWLINE# #UNINDENT# #UNINDENT# return collector