aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple/io_read_dumpfile.py
diff options
context:
space:
mode:
authorharsh vijay <iharsh234@gmail.com>2017-04-29 03:26:14 +0530
committerGitHub <noreply@github.com>2017-04-29 03:26:14 +0530
commit36118973d98f1afa81e79a846f595a7c4782ff9a (patch)
tree36649bb0b9737548b9b33fd7eac2c359ce1d2d83 /examples/simple/io_read_dumpfile.py
parentb537997f4f5d7c33562414a414913b6cd89f99c3 (diff)
downloadmitmproxy-36118973d98f1afa81e79a846f595a7c4782ff9a.tar.gz
mitmproxy-36118973d98f1afa81e79a846f595a7c4782ff9a.tar.bz2
mitmproxy-36118973d98f1afa81e79a846f595a7c4782ff9a.zip
extend mypy example/simple
Diffstat (limited to 'examples/simple/io_read_dumpfile.py')
-rw-r--r--examples/simple/io_read_dumpfile.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/simple/io_read_dumpfile.py b/examples/simple/io_read_dumpfile.py
index edbbe2dd..87d37c0f 100644
--- a/examples/simple/io_read_dumpfile.py
+++ b/examples/simple/io_read_dumpfile.py
@@ -8,6 +8,7 @@ from mitmproxy.exceptions import FlowReadException
import pprint
import sys
+
with open(sys.argv[1], "rb") as logfile:
freader = io.FlowReader(logfile)
pp = pprint.PrettyPrinter(indent=4)