about summary refs log tree commit diff stats
path: root/test/core/sembuilder.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2019-03-07 14:37:07 +0100
committerGitHub <noreply@github.com>2019-03-07 14:37:07 +0100
commit4c2320b46250a8d6f8774e1218544b72a154cd8e (patch)
treeb67e7b072439f84109bd39dad8ed7f3f135224f8 /test/core/sembuilder.py
parenteab809932871f91d6f4aa770fc321af9e156e0f5 (diff)
parent26c1075723a02984da6d3bc7423c5c0c43082dc3 (diff)
downloadmiasm-4c2320b46250a8d6f8774e1218544b72a154cd8e.tar.gz
miasm-4c2320b46250a8d6f8774e1218544b72a154cd8e.zip
Merge pull request #990 from serpilliere/support_python2_python3
Support python2 python3
Diffstat (limited to 'test/core/sembuilder.py')
-rw-r--r--test/core/sembuilder.py25
1 files changed, 13 insertions, 12 deletions
diff --git a/test/core/sembuilder.py b/test/core/sembuilder.py
index f7a96b89..7c3d578e 100644
--- a/test/core/sembuilder.py
+++ b/test/core/sembuilder.py
@@ -1,9 +1,10 @@
+from __future__ import print_function
 import inspect
 from pdb import pm
 
-from miasm2.core.sembuilder import SemBuilder
-from miasm2.core.locationdb import LocationDB
-import miasm2.expression.expression as m2_expr
+from miasm.core.sembuilder import SemBuilder
+from miasm.core.locationdb import LocationDB
+import miasm.expression.expression as m2_expr
 
 
 
@@ -50,18 +51,18 @@ ir = IR(loc_db)
 instr = Instr()
 res = test(ir, instr, a, b, c)
 
-print "[+] Returned:"
-print res
-print "[+] DocString:", test.__doc__
+print("[+] Returned:")
+print(res)
+print("[+] DocString:", test.__doc__)
 
-print "[+] Cur instr:"
+print("[+] Cur instr:")
 for statement in res[0]:
-    print statement
+    print(statement)
 
-print "[+] Blocks:"
+print("[+] Blocks:")
 for irb in res[1]:
-    print irb.loc_key
+    print(irb.loc_key)
     for assignblk in irb:
         for expr in assignblk:
-            print expr
-        print
+            print(expr)
+        print()