about summary refs log tree commit diff stats
path: root/example/asm/simple.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2019-02-25 11:09:54 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2019-03-05 16:52:49 +0100
commit02bbb30efea4980c9d133947cbbf69fb599071ad (patch)
tree3fea6826fcc5354840a27cb1dc99ff31eef81896 /example/asm/simple.py
parenteab809932871f91d6f4aa770fc321af9e156e0f5 (diff)
downloadfocaccia-miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.tar.gz
focaccia-miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.zip
Support python2/python3
Diffstat (limited to 'example/asm/simple.py')
-rw-r--r--example/asm/simple.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/example/asm/simple.py b/example/asm/simple.py
index 5480e2f5..e46faa48 100644
--- a/example/asm/simple.py
+++ b/example/asm/simple.py
@@ -1,3 +1,4 @@
+from __future__ import print_function
 from pdb import pm
 from pprint import pprint
 
@@ -29,7 +30,7 @@ patches = asmblock.asm_resolve_final(mn_x86, asmcfg, loc_db)
 
 # Show resolved asmcfg
 for block in asmcfg.blocks:
-    print block
+    print(block)
 
 # Print offset -> bytes
 pprint(patches)