diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-06-18 12:50:15 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-07-06 21:55:11 +0200 |
commit | c82926ccdd4ec4e3ad6e78a381dacb96adf9b409 (patch) | |
tree | c2218a412203d63c116db71d93c3f6c15add12f0 /doc | |
parent | c9e66bbae78e4804a28b3ac6cfd2de39d9c6c450 (diff) | |
download | bitbake-c82926ccdd4ec4e3ad6e78a381dacb96adf9b409.tar.gz |
*: use print() as a function
to make python3 happy
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/usermanual.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual/usermanual.xml b/doc/manual/usermanual.xml index 7b87ad837..748ac319e 100644 --- a/doc/manual/usermanual.xml +++ b/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)) } </screen></para><para> This 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>) |