diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-19 16:57:57 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-19 16:57:57 +1200 |
commit | 892ee2a9041166ca4ae1e35893174791b96cccfa (patch) | |
tree | 25008c40584a09c70457716934e4defecf0251d8 /libpathod/test.py | |
parent | a700721891e028aacc867001a715a8f7d9cbf223 (diff) | |
download | mitmproxy-892ee2a9041166ca4ae1e35893174791b96cccfa.tar.gz mitmproxy-892ee2a9041166ca4ae1e35893174791b96cccfa.tar.bz2 mitmproxy-892ee2a9041166ca4ae1e35893174791b96cccfa.zip |
Start porting web app to Flask.
Diffstat (limited to 'libpathod/test.py')
-rw-r--r-- | libpathod/test.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libpathod/test.py b/libpathod/test.py index 28fcd664..f33e922f 100644 --- a/libpathod/test.py +++ b/libpathod/test.py @@ -7,10 +7,8 @@ IFACE = "127.0.0.1" class Daemon: def __init__(self, staticdir=None, anchors=(), ssl=None): - #self.app = pathod.make_app(staticdir=staticdir, anchors=anchors) - self.app = None self.q = Queue.Queue() - self.thread = PaThread(self.q, self.app, ssl) + self.thread = PaThread(self.q, ssl) self.thread.start() self.port = self.q.get(True, 5) self.urlbase = "%s://%s:%s"%("https" if ssl else "http", IFACE, self.port) @@ -25,9 +23,9 @@ class Daemon: class PaThread(threading.Thread): - def __init__(self, q, app, ssl): + def __init__(self, q, ssl): threading.Thread.__init__(self) - self.q, self.app, self.ssl = q, app, ssl + self.q, self.ssl = q, ssl self.port = None def run(self): |