diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-19 15:08:35 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-19 15:08:35 +1300 |
commit | 5a68d21e8c87e05f2ad0c18e6c7c505f5e9fc93d (patch) | |
tree | 12dff67cc2871d1e10c337e0eeaa6477cd888f3e /examples/flowbasic | |
parent | 7c32d4ea2a435484e83aa459831f74ca483d8e3c (diff) | |
download | mitmproxy-5a68d21e8c87e05f2ad0c18e6c7c505f5e9fc93d.tar.gz mitmproxy-5a68d21e8c87e05f2ad0c18e6c7c505f5e9fc93d.tar.bz2 mitmproxy-5a68d21e8c87e05f2ad0c18e6c7c505f5e9fc93d.zip |
Remove flow module entirely, move contents to top level
mitmproxy.flow.io -> mitmproxy.io
mitmproxy.flow.export -> mitmproxy.export
Diffstat (limited to 'examples/flowbasic')
-rwxr-xr-x | examples/flowbasic | 5 |
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() |