diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-01-12 12:49:19 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-01-12 12:49:19 +1300 |
commit | 58e1b3a47f392a5f4f16e30318820f163568f54e (patch) | |
tree | e6cd91e3575eb8d9dff5e7201177357d3c32fed4 /examples | |
parent | 2f63da99c938646568e5731d748b1c5507a0da29 (diff) | |
download | mitmproxy-58e1b3a47f392a5f4f16e30318820f163568f54e.tar.gz mitmproxy-58e1b3a47f392a5f4f16e30318820f163568f54e.tar.bz2 mitmproxy-58e1b3a47f392a5f4f16e30318820f163568f54e.zip |
Start refactoring scripts
- Move ScriptContext into script module
- Use mock module instead of hand-rolled mock objects in tests
Diffstat (limited to 'examples')
-rw-r--r-- | examples/nonblocking.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/nonblocking.py b/examples/nonblocking.py index ed8cc7c9..9a131b32 100644 --- a/examples/nonblocking.py +++ b/examples/nonblocking.py @@ -5,4 +5,4 @@ from libmproxy.script import concurrent def request(context, flow): print "handle request: %s%s" % (flow.request.host, flow.request.path) time.sleep(5) - print "start request: %s%s" % (flow.request.host, flow.request.path)
\ No newline at end of file + print "start request: %s%s" % (flow.request.host, flow.request.path) |