about summary refs log tree commit diff stats
path: root/example/symbol_exec/depgraph.py
diff options
context:
space:
mode:
authorw4kfu <gw4kfu@gmail.com>2017-06-22 14:01:40 -0400
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-01-16 12:56:14 +0100
commitd147d92892b294b31f1703685a3cf67b80cadb94 (patch)
treeccfce65718aa802f8e240a9dbbdf89b9b6a9518b /example/symbol_exec/depgraph.py
parent3e2364edcb6c4259782e251c236bad1090c8c9e0 (diff)
downloadfocaccia-miasm-d147d92892b294b31f1703685a3cf67b80cadb94.tar.gz
focaccia-miasm-d147d92892b294b31f1703685a3cf67b80cadb94.zip
append b to the opens mode ; Python on Windows makes a distinction between text and binary files
Diffstat (limited to 'example/symbol_exec/depgraph.py')
-rw-r--r--example/symbol_exec/depgraph.py2
1 files changed, 1 insertions, 1 deletions
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