diff options
author | Aldo Cortesi <aldo@corte.si> | 2016-06-11 22:22:02 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-11 22:22:02 +1200 |
commit | 8489c01ac81479e48c2ff2c3ab308e07e3d2bacd (patch) | |
tree | 589a0bc2d7c4134ef77459275246836da9f9fe07 /pathod/test.py | |
parent | 4831e3e0bcd6dc94c84df3dd224c354732bd3655 (diff) | |
parent | 53b2fd545b104051e0697c590cf7df5c37074170 (diff) | |
download | mitmproxy-8489c01ac81479e48c2ff2c3ab308e07e3d2bacd.tar.gz mitmproxy-8489c01ac81479e48c2ff2c3ab308e07e3d2bacd.tar.bz2 mitmproxy-8489c01ac81479e48c2ff2c3ab308e07e3d2bacd.zip |
Merge pull request #1241 from cortesi/debug
Debug
Diffstat (limited to 'pathod/test.py')
-rw-r--r-- | pathod/test.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pathod/test.py b/pathod/test.py index 11462729..3ba541b1 100644 --- a/pathod/test.py +++ b/pathod/test.py @@ -1,10 +1,10 @@ from six.moves import cStringIO as StringIO -import threading import time from six.moves import queue from . import pathod +from netlib import basethread class TimeoutError(Exception): @@ -95,11 +95,10 @@ class Daemon: self.thread.join() -class _PaThread(threading.Thread): +class _PaThread(basethread.BaseThread): def __init__(self, iface, q, ssl, daemonargs): - threading.Thread.__init__(self) - self.name = "PathodThread" + basethread.BaseThread.__init__(self, "PathodThread") self.iface, self.q, self.ssl = iface, q, ssl self.daemonargs = daemonargs self.server = None |