From c4fde248b14d4be9cab6d0eff85f9d7f852a4b65 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 18 Jun 2010 12:50:15 +0200 Subject: *: use print() as a function to make python3 happy (Bitbake rev: c82926ccdd4ec4e3ad6e78a381dacb96adf9b409) Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Richard Purdie --- bitbake/doc/manual/usermanual.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/doc') diff --git a/bitbake/doc/manual/usermanual.xml b/bitbake/doc/manual/usermanual.xml index 7b87ad837f..748ac319ef 100644 --- a/bitbake/doc/manual/usermanual.xml +++ b/bitbake/doc/manual/usermanual.xml @@ -218,8 +218,8 @@ python myclass_eventhandler() { from bb.event import getName from bb import data - print "The name of the Event is %s" % getName(e) - print "The file we run for is %s" % data.getVar('FILE', e.data, True) + print("The name of the Event is %s" % getName(e)) + print("The file we run for is %s" % data.getVar('FILE', e.data, True)) } This event handler gets called every time an event is triggered. A global variable e is defined. e.data contains an instance of bb.data. With the getName(e) -- cgit v1.2.3-54-g00ecf