From 02bbb30efea4980c9d133947cbbf69fb599071ad Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Mon, 25 Feb 2019 11:09:54 +0100 Subject: Support python2/python3 --- example/expression/expr_c.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'example/expression/expr_c.py') 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) -- cgit 1.4.1