code: def _stopThread(self, exception, raiseEvery=2.0):
          '''
              _stopThread - @see StoppableThread.stop
          '''
          if self.isAlive() is False:
              return True
  
          self._stderr = open(os.devnull, 'w')
  
          # Create "joining" thread which will raise the provided exception
          #  on a repeat, until the thread stops.
          joinThread = JoinThread(self, exception, repeatEvery=raiseEvery)
  
          # Try to prevent spurrious prints
          joinThread._stderr = self._stderr
          joinThread.start()
          joinThread._stderr = self._stderf _stopThread(self, exception, raiseEvery=2.0):
          '''
              _stopThread - @see StoppableThread.stop
          '''
          if self.isAlive() is False:
              return True
  
          self._stderr = open(os.devnull, 'w')
  
          # Create "joining" thread which will raise the provided exception
          #  on a repeat, until the thread stops.
          joinThread = JoinThread(self, exception, repeatEvery=raiseEvery)
  
          # Try to prevent spurrious prints
          joinThread._stderr = self._stderr
          joinThread.start()
          joinThread._stderr = self._stderr
docs: _stopThread - @see StoppableThread.stop