remove unused basethread implementation

This commit is contained in:
Maximilian Hils 2022-09-19 14:34:24 +02:00
parent 3212c3f9ec
commit 8b3e3e7b40
2 changed files with 0 additions and 18 deletions

View File

@ -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))

View File

@ -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())