Skip to content

Commit

Permalink
slides: yocto-recipe-extra: add marked anonymous function
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
  • Loading branch information
tprrt authored and tpetazzoni committed Oct 29, 2021
1 parent 2699667 commit ee39476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slides/yocto-recipe-extra/yocto-recipe-extra.tex
Expand Up @@ -124,7 +124,7 @@ \subsection{Python tasks}
\frametitle{Python task example}
\begin{minted}{python}
# Anonymous function
python () {
python __anonymous() {
if d.getVar("FOO", True) == "example":
d.setVar("BAR", "Hello, World.")
}
Expand Down

0 comments on commit ee39476

Please sign in to comment.