diff options
Diffstat (limited to 'bitbake/lib/bb/parse/ast.py')
-rw-r--r-- | bitbake/lib/bb/parse/ast.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py index 9d20c323fe..6d7c80b34f 100644 --- a/bitbake/lib/bb/parse/ast.py +++ b/bitbake/lib/bb/parse/ast.py | |||
@@ -178,7 +178,7 @@ class MethodNode(AstNode): | |||
178 | funcname = ("__anon_%s_%s" % (self.lineno, self.filename.translate(MethodNode.tr_tbl))) | 178 | funcname = ("__anon_%s_%s" % (self.lineno, self.filename.translate(MethodNode.tr_tbl))) |
179 | self.python = True | 179 | self.python = True |
180 | text = "def %s(d):\n" % (funcname) + text | 180 | text = "def %s(d):\n" % (funcname) + text |
181 | bb.methodpool.insert_method(funcname, text, self.filename, self.lineno - len(self.body)) | 181 | bb.methodpool.insert_method(funcname, text, self.filename, self.lineno - len(self.body) - 1) |
182 | anonfuncs = data.getVar('__BBANONFUNCS', False) or [] | 182 | anonfuncs = data.getVar('__BBANONFUNCS', False) or [] |
183 | anonfuncs.append(funcname) | 183 | anonfuncs.append(funcname) |
184 | data.setVar('__BBANONFUNCS', anonfuncs) | 184 | data.setVar('__BBANONFUNCS', anonfuncs) |