diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-07-14 16:20:27 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-07-14 19:54:15 +1200 |
commit | b94f5fd361af6255ad4d3c7a88b9a21868736dea (patch) | |
tree | 5237bbd32c84d284a5c4b2478a9034f11d39a850 /examples/stub.py | |
parent | a6821aad8e9296640c3efd4275e8922dd7c6e43b (diff) | |
download | mitmproxy-b94f5fd361af6255ad4d3c7a88b9a21868736dea.tar.gz mitmproxy-b94f5fd361af6255ad4d3c7a88b9a21868736dea.tar.bz2 mitmproxy-b94f5fd361af6255ad4d3c7a88b9a21868736dea.zip |
Convert examples and example tests for new-style scripts
Remove the test that just loads all the example scripts for now - it's a very
low-value test, and we need to think of something better.
Diffstat (limited to 'examples/stub.py')
-rw-r--r-- | examples/stub.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stub.py b/examples/stub.py index 10b34283..614acee2 100644 --- a/examples/stub.py +++ b/examples/stub.py @@ -4,11 +4,11 @@ import mitmproxy """ -def start(): +def configure(options): """ - Called once on script startup, before any other events. + Called once on script startup before any other events, and whenever options changes. """ - mitmproxy.ctx.log("start") + mitmproxy.ctx.log("configure") def clientconnect(root_layer): |