From 02bbb30efea4980c9d133947cbbf69fb599071ad Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Mon, 25 Feb 2019 11:09:54 +0100 Subject: Support python2/python3 --- example/expression/constant_propagation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/expression/constant_propagation.py') diff --git a/example/expression/constant_propagation.py b/example/expression/constant_propagation.py index e70f8163..1259758b 100644 --- a/example/expression/constant_propagation.py +++ b/example/expression/constant_propagation.py @@ -25,7 +25,7 @@ args = parser.parse_args() machine = Machine("x86_32") -cont = Container.from_stream(open(args.filename)) +cont = Container.from_stream(open(args.filename, 'rb')) mdis = machine.dis_engine(cont.bin_stream, loc_db=cont.loc_db) ir_arch = machine.ira(mdis.loc_db) addr = int(args.address, 0) -- cgit 1.4.1