parameters: (self)
docstring: Stop this Tracer.
docstring_summary: Stop this Tracer.
docstring_tokens: Stop this Tracer .
function: def stop(self):
          """Stop this Tracer."""
          self.stopped = True
          if self.threading and self.thread != self.threading.currentThread():
              # Called on a different thread than started us: we can't unhook
              # ourselves, but we've set the flag that we should stop, so we
              # won't do any more tracing.
              return
  
          if self.warn:
              if sys.gettrace() != self._trace:
                  msg = "Trace function changed, measurement is likely wrong: %r"
                  self.warn(msg % (sys.gettrace(),))
  
          sys.settrace(None)
function_tokens: def stop ( self ) : self . stopped = True if self . threading and self . thread != self . threading . currentThread ( ) : # Called on a different thread than started us: we can't unhook # ourselves, but we've set the flag that we should stop, so we # won't do any more tracing. return if self . warn : if sys . gettrace ( ) != self . _trace : msg = "Trace function changed, measurement is likely wrong: %r" self . warn ( msg % ( sys . gettrace ( ) , ) ) sys . settrace ( None )