mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
2fc9281c49
commit
decc756e89
@@ -537,7 +537,10 @@
|
||||
</note>
|
||||
|
||||
<para>
|
||||
Python functions should use unique names.
|
||||
For utility functions that you intend to call from
|
||||
in-line Python or other Python functions, BitBake allows
|
||||
you to define these as pure Python functions.
|
||||
Here is an example:
|
||||
<literallayout class='monospaced'>
|
||||
def get_depends(d):
|
||||
if d.getVar('SOMECONDITION', True):
|
||||
|
||||
Reference in New Issue
Block a user