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 /example/expression/expr_c.py | |
| parent | eab809932871f91d6f4aa770fc321af9e156e0f5 (diff) | |
| download | focaccia-miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.tar.gz focaccia-miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.zip | |
Support python2/python3
Diffstat (limited to 'example/expression/expr_c.py')
| -rw-r--r-- | example/expression/expr_c.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/example/expression/expr_c.py b/example/expression/expr_c.py index 37c9f510..83cc727b 100644 --- a/example/expression/expr_c.py +++ b/example/expression/expr_c.py @@ -3,6 +3,7 @@ Parse C expression to access variables and retrieve information: * Miasm expression to access this variable * variable type """ +from __future__ import print_function from miasm2.core.ctypesmngr import CTypeStruct, CAstTypes, CTypePtr from miasm2.arch.x86.ctype import CTypeAMD64_unk @@ -56,6 +57,6 @@ c_acceses = ["ptr->width", for c_str in c_acceses: expr = mychandler.c_to_expr(c_str) c_type = mychandler.c_to_type(c_str) - print 'C access:', c_str - print '\tExpr:', expr - print '\tType:', c_type + print('C access:', c_str) + print('\tExpr:', expr) + print('\tType:', c_type) |