aboutsummaryrefslogtreecommitdiffstats
path: root/examples/flowbasic
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 /examples/flowbasic
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 'examples/flowbasic')
-rwxr-xr-xexamples/flowbasic4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/flowbasic b/examples/flowbasic
index 67c6f596..0eb163a4 100755
--- a/examples/flowbasic
+++ b/examples/flowbasic
@@ -12,10 +12,10 @@ from mitmproxy import flow, controller, options
from mitmproxy.proxy import ProxyServer, ProxyConfig
-class MyMaster(flow.FlowMaster):
+class MyMaster(master.Master):
def run(self):
try:
- flow.FlowMaster.run(self)
+ master.Master.run(self)
except KeyboardInterrupt:
self.shutdown()