diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2019-02-25 11:09:54 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2019-03-05 16:52:49 +0100 |
| commit | 02bbb30efea4980c9d133947cbbf69fb599071ad (patch) | |
| tree | 3fea6826fcc5354840a27cb1dc99ff31eef81896 /test/core/sembuilder.py | |
| parent | eab809932871f91d6f4aa770fc321af9e156e0f5 (diff) | |
| download | focaccia-miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.tar.gz focaccia-miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.zip | |
Support python2/python3
Diffstat (limited to 'test/core/sembuilder.py')
| -rw-r--r-- | test/core/sembuilder.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/test/core/sembuilder.py b/test/core/sembuilder.py index f7a96b89..53e9e60e 100644 --- a/test/core/sembuilder.py +++ b/test/core/sembuilder.py @@ -1,3 +1,4 @@ +from __future__ import print_function import inspect from pdb import pm @@ -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() |