diff --git a/mitmproxy/coretypes/basethread.py b/mitmproxy/coretypes/basethread.py deleted file mode 100644 index 9a3c64bdc..000000000 --- a/mitmproxy/coretypes/basethread.py +++ /dev/null @@ -1,11 +0,0 @@ -import time -import threading - - -class BaseThread(threading.Thread): - def __init__(self, name, *args, **kwargs): - super().__init__(name=name, *args, **kwargs) - self._thread_started = time.time() - - def _threadinfo(self): - return "%s - age: %is" % (self.name, int(time.time() - self._thread_started)) diff --git a/test/mitmproxy/coretypes/test_basethread.py b/test/mitmproxy/coretypes/test_basethread.py deleted file mode 100644 index 59e28bb0e..000000000 --- a/test/mitmproxy/coretypes/test_basethread.py +++ /dev/null @@ -1,7 +0,0 @@ -import re -from mitmproxy.coretypes import basethread - - -def test_basethread(): - t = basethread.BaseThread("foobar") - assert re.match(r"foobar - age: \d+s", t._threadinfo())