#NEWLINE# def get_culprit( frames , * args , **kwargs ) : #NEWLINE# #INDENT# if ( args or kwargs ) : #NEWLINE# #INDENT# warnings . warn ( 'get_culprit no longer does application detection' ) #NEWLINE# #UNINDENT# best_guess = None #NEWLINE# culprit = None #NEWLINE# for frame in reversed ( frames ) : #NEWLINE# #INDENT# culprit = label_from_frame ( frame ) #NEWLINE# if ( not culprit ) : #NEWLINE# #INDENT# culprit = None #NEWLINE# continue #NEWLINE# #UNINDENT# if frame . get ( 'in_app' ) : #NEWLINE# #INDENT# return culprit #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not best_guess ) : #NEWLINE# #INDENT# best_guess = culprit #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if best_guess : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return ( best_guess or culprit )