diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-22 20:01:55 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-23 08:49:03 +0100 |
commit | 80a0c1b06a30a6ba9977c29fac0437a208d8cbbc (patch) | |
tree | 438b6c36376921394a7d2fdf90cfae6491d46cd1 /lib/bb/parse/ast.py | |
parent | 2e98f740b4a57a3467b1a00b1ebc1aaee33a8ff0 (diff) | |
download | bitbake-80a0c1b06a30a6ba9977c29fac0437a208d8cbbc.tar.gz |
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/parse/ast.py')
-rw-r--r-- | lib/bb/parse/ast.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/parse/ast.py b/lib/bb/parse/ast.py index dfc0b0224..4caa93e04 100644 --- a/lib/bb/parse/ast.py +++ b/lib/bb/parse/ast.py @@ -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) |