summaryrefslogtreecommitdiffstats
path: root/bitbake/doc/manual/usermanual.xml
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/doc/manual/usermanual.xml')
-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 7b87ad837f..748ac319ef 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>)