aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/dump.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-10-19 13:22:50 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-10-19 13:22:50 +1300
commitbce387a5a0d52f682f479b11cb40ae0918e070c0 (patch)
tree4b96065dc5f7c7e904a731002a184ae890de4802 /mitmproxy/dump.py
parent264a09e7789500673282075b2f5b9956268f0cea (diff)
downloadmitmproxy-bce387a5a0d52f682f479b11cb40ae0918e070c0.tar.gz
mitmproxy-bce387a5a0d52f682f479b11cb40ae0918e070c0.tar.bz2
mitmproxy-bce387a5a0d52f682f479b11cb40ae0918e070c0.zip
Kill flow.master - create master.Master
Also extract events into .events
Diffstat (limited to 'mitmproxy/dump.py')
-rw-r--r--mitmproxy/dump.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mitmproxy/dump.py b/mitmproxy/dump.py
index e2167259..4731686c 100644
--- a/mitmproxy/dump.py
+++ b/mitmproxy/dump.py
@@ -6,6 +6,7 @@ from mitmproxy import exceptions
from mitmproxy import flow
from mitmproxy import builtins
from mitmproxy import options
+from mitmproxy import master
from mitmproxy.builtins import dumper, termlog
from netlib import tcp
@@ -30,10 +31,10 @@ class Options(options.Options):
super().__init__(**kwargs)
-class DumpMaster(flow.FlowMaster):
+class DumpMaster(master.Master):
def __init__(self, options, server):
- flow.FlowMaster.__init__(self, options, server)
+ master.Master.__init__(self, options, server)
self.has_errored = False
self.addons.add(termlog.TermLog())
self.addons.add(*builtins.default_addons())