diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-08-17 11:29:24 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-08-17 11:29:24 +1200 |
commit | 9286f5b5b4d9483d0d8e7fa0fb4c27961cd236be (patch) | |
tree | e1d39a7509a193cf7affcf1a505206154e1ad5da /examples | |
parent | 19a17933cc58f5a5c70ccfa63a43165024b5c805 (diff) | |
download | mitmproxy-9286f5b5b4d9483d0d8e7fa0fb4c27961cd236be.tar.gz mitmproxy-9286f5b5b4d9483d0d8e7fa0fb4c27961cd236be.tar.bz2 mitmproxy-9286f5b5b4d9483d0d8e7fa0fb4c27961cd236be.zip |
Small tweaks to read_dumpfile example.
Diffstat (limited to 'examples')
-rwxr-xr-x[-rw-r--r--] | examples/read_dumpfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/read_dumpfile b/examples/read_dumpfile index 2238d2d2..ecddc65d 100644..100755 --- a/examples/read_dumpfile +++ b/examples/read_dumpfile @@ -7,7 +7,7 @@ from libmproxy import flow import json import sys -with open("logfile", "rb") as logfile: +with open(sys.argv[1], "rb") as logfile: freader = flow.FlowReader(logfile) try: for f in freader.stream(): |