From decc756e8990bfc5e0aa973320b2b81419a33518 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 3 Feb 2014 12:07:43 -0600 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/doc/user-manual/user-manual-metadata.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bitbake/doc/user-manual/user-manual-metadata.xml') 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 @@ - 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: def get_depends(d): if d.getVar('SOMECONDITION', True): -- cgit v1.2.3-54-g00ecf