#NEWLINE# def stop( self ) : #NEWLINE# #INDENT# 'Stop this Tracer.' #NEWLINE# self . stopped = True #NEWLINE# if ( self . thread != threading . currentThread ( ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( hasattr ( sys , 'gettrace' ) and self . warn ) : #NEWLINE# #INDENT# if ( sys . gettrace ( ) != self . _trace ) : #NEWLINE# #INDENT# msg = 'Trace function changed, measurement is likely wrong: %r' #NEWLINE# self . warn ( ( msg % ( sys . gettrace ( ) , ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# sys . settrace ( None )