From d147d92892b294b31f1703685a3cf67b80cadb94 Mon Sep 17 00:00:00 2001 From: w4kfu Date: Thu, 22 Jun 2017 14:01:40 -0400 Subject: append b to the opens mode ; Python on Windows makes a distinction between text and binary files --- example/symbol_exec/depgraph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/symbol_exec/depgraph.py') diff --git a/example/symbol_exec/depgraph.py b/example/symbol_exec/depgraph.py index 4d518cb3..c1d6174d 100644 --- a/example/symbol_exec/depgraph.py +++ b/example/symbol_exec/depgraph.py @@ -31,7 +31,7 @@ parser.add_argument("--json", args = parser.parse_args() # Get architecture -with open(args.filename) as fstream: +with open(args.filename, "rb") as fstream: cont = Container.from_stream(fstream) arch = args.architecture if args.architecture else cont.arch -- cgit 1.4.1