diff options
Diffstat (limited to 'example/expression/expr_c.py')
| -rw-r--r-- | example/expression/expr_c.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/example/expression/expr_c.py b/example/expression/expr_c.py index 37c9f510..cdfdf4ca 100644 --- a/example/expression/expr_c.py +++ b/example/expression/expr_c.py @@ -3,11 +3,12 @@ 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 -from miasm2.core.objc import CTypesManagerNotPacked, CHandler -from miasm2.expression.expression import ExprId +from miasm.core.ctypesmngr import CTypeStruct, CAstTypes, CTypePtr +from miasm.arch.x86.ctype import CTypeAMD64_unk +from miasm.core.objc import CTypesManagerNotPacked, CHandler +from miasm.expression.expression import ExprId """ @@ -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) |