aboutsummaryrefslogtreecommitdiffstats
path: root/examples/flowbasic
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2016-10-19 21:26:54 +1300
committerGitHub <noreply@github.com>2016-10-19 21:26:54 +1300
commitb1cf9dd5e38d5386199dff8c49e0dc1b46d8ec72 (patch)
treefee98428fbf36897aa874fd91fe5c9738bf2626f /examples/flowbasic
parent49346c5248b8aa33acef26f0d55f51dcd2493a59 (diff)
parent24cf8da27eb56a65bf3e4ceb78bbeacdb1864597 (diff)
downloadmitmproxy-b1cf9dd5e38d5386199dff8c49e0dc1b46d8ec72.tar.gz
mitmproxy-b1cf9dd5e38d5386199dff8c49e0dc1b46d8ec72.tar.bz2
mitmproxy-b1cf9dd5e38d5386199dff8c49e0dc1b46d8ec72.zip
Merge pull request #1633 from cortesi/refactor2
Continue module structure cleanup
Diffstat (limited to 'examples/flowbasic')
-rwxr-xr-xexamples/flowbasic5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/flowbasic b/examples/flowbasic
index bac98916..cb1e4ea4 100755
--- a/examples/flowbasic
+++ b/examples/flowbasic
@@ -8,7 +8,7 @@
Note that request and response messages are not automatically replied to,
so we need to implement handlers to do this.
"""
-from mitmproxy import flow, controller, options
+from mitmproxy import controller, options, master
from mitmproxy.proxy import ProxyServer, ProxyConfig
@@ -37,7 +37,6 @@ class MyMaster(master.Master):
opts = options.Options(cadir="~/.mitmproxy/")
config = ProxyConfig(opts)
-state = state.State()
server = ProxyServer(config)
-m = MyMaster(opts, server, state)
+m = MyMaster(opts, server)
m.run()