def close(self):
        if self._running:
            LOG.debug("closing...")
            self._closing = True
            self._queue.put(None)
            LOG.debug("wait task complete...")
            self._service_thread.join()
        else:
            raise RuntimeError("current service is not running")

        LOG.info("closed, record file: '{}'".format(self.filepath))
Compile a Django Q that will match any IP inside this site.
dataset/ETHPy150Open jjyr/zerotest/zerotest/record/http_recorder.py/HTTPRecorder.close--crossover with--dataset/ETHPy150Open mozilla/inventory/core/site/models.py/Site.compile_Q