[bitbake-devel] [PATCH 1/2] data_smart: simple bracket matching inside python expressions

Christopher Larson clarson at kergoth.com
Wed Feb 3 15:56:42 UTC 2016


On Wed, Feb 3, 2016 at 3:33 AM, Markus Lehtonen <
markus.lehtonen at linux.intel.com> wrote:

> This expands the python expansion regex by matching curly brackets
> inside python expressions. In its simplicity it is limited: e.g. it does
> not correctly handle nested curly brackets or open curly brackets (i.e.
> '{' without a matching '}') inside python expressions. Making python
> parsing inside data_smart fully error-free would require significantly
> more work, basically using/implementing python parser to correctly
> handle python strings etc.
>
> [YOCTO #8849]
>
> Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
>

Will this cause problems with regular variable expansion nested inside of
inline python, which is allowed? I.e. ${@ ... '${FOO}'}
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20160203/33288524/attachment-0002.html>


More information about the bitbake-devel mailing list