#NEWLINE# def trace( self , predicate ) : #NEWLINE# #INDENT# self . _handler = predicate #NEWLINE# if self . threading_support : #NEWLINE# #INDENT# self . _threading_previous = getattr ( threading , '_trace_hook' , None ) #NEWLINE# threading . settrace ( self ) #NEWLINE# #UNINDENT# self . _previous = sys . gettrace ( ) #NEWLINE# sys . settrace ( self ) #NEWLINE# return predicate