From 5a68d21e8c87e05f2ad0c18e6c7c505f5e9fc93d Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 19 Oct 2016 15:08:35 +1300 Subject: Remove flow module entirely, move contents to top level mitmproxy.flow.io -> mitmproxy.io mitmproxy.flow.export -> mitmproxy.export --- examples/flowwriter.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/flowwriter.py') diff --git a/examples/flowwriter.py b/examples/flowwriter.py index df2e5a40..afce85aa 100644 --- a/examples/flowwriter.py +++ b/examples/flowwriter.py @@ -1,7 +1,6 @@ import random import sys - -from mitmproxy.flow import FlowWriter +from mimtproxy import io class Writer: @@ -10,7 +9,7 @@ class Writer: f = sys.stdout else: f = open(path, "wb") - self.w = FlowWriter(f) + self.w = io.FlowWriter(f) def response(self, flow): if random.choice([True, False]): -- cgit v1.2.3 From 24cf8da27eb56a65bf3e4ceb78bbeacdb1864597 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 19 Oct 2016 15:25:39 +1300 Subject: Move all tools into mitmproxy.tools, move models/* to top level The primary motivation here (and for all the other moving around) is to present a clean "front of house" to library users, and to migrate primary objects to the top of the module hierarchy. --- examples/flowwriter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/flowwriter.py') diff --git a/examples/flowwriter.py b/examples/flowwriter.py index afce85aa..a9768542 100644 --- a/examples/flowwriter.py +++ b/examples/flowwriter.py @@ -1,6 +1,6 @@ import random import sys -from mimtproxy import io +from mitmproxy import io class Writer: -- cgit v1.2.3