summaryrefslogtreecommitdiffstats
path: root/bitbake/doc
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-18 10:50:15 (GMT)
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-16 14:10:40 (GMT)
commitc4fde248b14d4be9cab6d0eff85f9d7f852a4b65 (patch)
tree0462a7b4c188f390af53d2b1a6312894774d740f /bitbake/doc
parent2fc283c52d7d6d6bf8e67a7847f064fa20d4bc51 (diff)
downloadpoky-c4fde248b14d4be9cab6d0eff85f9d7f852a4b65.tar.gz
*: use print() as a function
to make python3 happy (Bitbake rev: c82926ccdd4ec4e3ad6e78a381dacb96adf9b409) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/doc')
-rw-r--r--bitbake/doc/manual/usermanual.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/doc/manual/usermanual.xml b/bitbake/doc/manual/usermanual.xml
index 7b87ad8..748ac31 100644
--- a/bitbake/doc/manual/usermanual.xml
+++ b/bitbake/doc/manual/usermanual.xml
@@ -218,8 +218,8 @@ python myclass_eventhandler() {
218 from bb.event import getName 218 from bb.event import getName
219 from bb import data 219 from bb import data
220 220
221 print "The name of the Event is %s" % getName(e) 221 print("The name of the Event is %s" % getName(e))
222 print "The file we run for is %s" % data.getVar('FILE', e.data, True) 222 print("The file we run for is %s" % data.getVar('FILE', e.data, True))
223} 223}
224</screen></para><para> 224</screen></para><para>
225This event handler gets called every time an event is triggered. A global variable <varname>e</varname> is defined. <varname>e</varname>.data contains an instance of bb.data. With the getName(<varname>e</varname>) 225This event handler gets called every time an event is triggered. A global variable <varname>e</varname> is defined. <varname>e</varname>.data contains an instance of bb.data. With the getName(<varname>e</varname>)