diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2017-03-05 14:55:46 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2017-03-05 15:10:03 +1300 |
commit | 67381ae550a5d57c1f2841cd7118550afdfaa736 (patch) | |
tree | cb96c6def6624aa8e42c88dca5597e58d457106a /test/helper_tools | |
parent | e0644398b62a312652c15569c0f530a27963dcf4 (diff) | |
download | mitmproxy-67381ae550a5d57c1f2841cd7118550afdfaa736.tar.gz mitmproxy-67381ae550a5d57c1f2841cd7118550afdfaa736.tar.bz2 mitmproxy-67381ae550a5d57c1f2841cd7118550afdfaa736.zip |
Revamp options
- Options are now explicitly initialized with an add_option method
- We have one canonical Options class - ditch dump.Options
Diffstat (limited to 'test/helper_tools')
-rwxr-xr-x | test/helper_tools/dumperview.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/helper_tools/dumperview.py b/test/helper_tools/dumperview.py index be56fe14..d417d767 100755 --- a/test/helper_tools/dumperview.py +++ b/test/helper_tools/dumperview.py @@ -4,12 +4,12 @@ import click from mitmproxy.addons import dumper from mitmproxy.test import tflow from mitmproxy.test import taddons -from mitmproxy.tools import dump +from mitmproxy.tools import options def show(flow_detail, flows): d = dumper.Dumper() - with taddons.context(options=dump.Options()) as ctx: + with taddons.context(options=options.Options()) as ctx: ctx.configure(d, flow_detail=flow_detail) for f in flows: ctx.cycle(d, f) |