about summary refs log tree commit diff stats
path: root/example/disasm/full.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2019-11-18 13:52:55 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2019-11-18 13:52:55 +0100
commit55e94456efd7b107058584da962b91a9d711b35d (patch)
tree732415037f8112da63115b2cfdde2b5e5733f425 /example/disasm/full.py
parentcc565ff0c1875793ac153eb6f163d88c0dcab3de (diff)
downloadmiasm-55e94456efd7b107058584da962b91a9d711b35d.tar.gz
miasm-55e94456efd7b107058584da962b91a9d711b35d.zip
Fix dot 'w' open
Diffstat (limited to 'example/disasm/full.py')
-rw-r--r--example/disasm/full.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/disasm/full.py b/example/disasm/full.py
index f7268ad0..a28d548e 100644
--- a/example/disasm/full.py
+++ b/example/disasm/full.py
@@ -279,7 +279,7 @@ if args.gen_ir:
             raise RuntimeError("Your graph should have only one head")
         ssa = SSADiGraph(ircfg_a)
         ssa.transform(head)
-        open("ssa.dot", "wb").write(ircfg_a.dot())
+        open("ssa.dot", "w").write(ircfg_a.dot())
 
 
 if args.propagexpr: