ast: Store anonymous python function contents in the datstore
PATCH 1/1 ast: Store anonymous python function contents in the datstore
This is useful if we need to disable part of one during a backtrace for debugging purposes.
Signed-off-by Richard Purdie <[email protected]>
---
bitbake/lib/bb/parse/ast.py +1 -0
@@ -134,6 +134,7 @@ class MethodNode(AstNode): anonfuncs = data.getVar('__BBANONFUNCS') or [] anonfuncs.append(funcname) data.setVar('__BBANONFUNCS', anonfuncs) + data.setVar(funcname, text) else: data.setVarFlag(self.func_name, "func", 1) data.setVar(self.func_name, text)