summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2014-02-03 12:07:43 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-11 12:17:06 +0000
commitdecc756e8990bfc5e0aa973320b2b81419a33518 (patch)
tree5dd8773025f8bb1a06566b8b8992483959d4abed /bitbake
parent2fc9281c49a562083d3736b2f8b159f0e76e3c0b (diff)
downloadpoky-decc756e8990bfc5e0aa973320b2b81419a33518.tar.gz
bitbake: user-manual-metadata.xml: Edits to "Defining Pure Python Functions"
Made a review edit here to the section per Paul Eggleton. (Bitbake rev: 3b6ab095862367bc0101b995b002f62e7968ccf3) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/doc/user-manual/user-manual-metadata.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/doc/user-manual/user-manual-metadata.xml b/bitbake/doc/user-manual/user-manual-metadata.xml
index fb4bf4044c..05cb9850c6 100644
--- a/bitbake/doc/user-manual/user-manual-metadata.xml
+++ b/bitbake/doc/user-manual/user-manual-metadata.xml
@@ -537,7 +537,10 @@
537 </note> 537 </note>
538 538
539 <para> 539 <para>
540 Python functions should use unique names. 540 For utility functions that you intend to call from
541 in-line Python or other Python functions, BitBake allows
542 you to define these as pure Python functions.
543 Here is an example:
541 <literallayout class='monospaced'> 544 <literallayout class='monospaced'>
542 def get_depends(d): 545 def get_depends(d):
543 if d.getVar('SOMECONDITION', True): 546 if d.getVar('SOMECONDITION', True):