aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-04-14 11:58:10 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-04-14 11:58:10 +1200
commitbea0bd236a60e3e6c80027448e51b7802394304a (patch)
tree1cc160e19eb1834703798503f1818e4278bce1b2 /examples
parentf37efecd0a22313eacad33251512ef371557fde7 (diff)
downloadmitmproxy-bea0bd236a60e3e6c80027448e51b7802394304a.tar.gz
mitmproxy-bea0bd236a60e3e6c80027448e51b7802394304a.tar.bz2
mitmproxy-bea0bd236a60e3e6c80027448e51b7802394304a.zip
Housekeeping and cleanups
- No output to stdout on load in examples - they muck up the test suite. - Use the odict module directly, rather than aliasing it. The small convenience this gives to scripters is not worth it. - Move the cookie tests from the flow test module to the protocol_http test module.
Diffstat (limited to 'examples')
-rw-r--r--examples/filt.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/filt.py b/examples/filt.py
index dc241046..cce2a48a 100644
--- a/examples/filt.py
+++ b/examples/filt.py
@@ -4,7 +4,6 @@
from libmproxy import filt
def start(context, argv):
- print argv
if len(argv) != 2:
raise ValueError("Usage: -s 'filt.py FILTER'")
context.filter = filt.parse(argv[1])
@@ -12,4 +11,4 @@ def start(context, argv):
def response(context, flow):
if flow.match(context.filter):
print("Flow matches filter:")
- print(flow) \ No newline at end of file
+ print(flow)