remove unused basethread implementation
This commit is contained in:
parent
3212c3f9ec
commit
8b3e3e7b40
|
@ -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))
|
|
@ -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())
|
Loading…
Reference in New Issue