diff options
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py/BBHandler.py')
-rw-r--r-- | bitbake/lib/bb/parse/parse_py/BBHandler.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index bb56174881..51ad10fb92 100644 --- a/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py | |||
@@ -183,7 +183,7 @@ def feeder(lineno, s, fn, root, statements): | |||
183 | __body__.append(s) | 183 | __body__.append(s) |
184 | return | 184 | return |
185 | else: | 185 | else: |
186 | ast.handlePythonMethod(statements, root, __body__, fn) | 186 | ast.handlePythonMethod(statements, __inpython__, root, __body__, fn) |
187 | __body__ = [] | 187 | __body__ = [] |
188 | __inpython__ = False | 188 | __inpython__ = False |
189 | 189 | ||
@@ -210,7 +210,8 @@ def feeder(lineno, s, fn, root, statements): | |||
210 | m = __def_regexp__.match(s) | 210 | m = __def_regexp__.match(s) |
211 | if m: | 211 | if m: |
212 | __body__.append(s) | 212 | __body__.append(s) |
213 | __inpython__ = True | 213 | __inpython__ = m.group(1) |
214 | |||
214 | return | 215 | return |
215 | 216 | ||
216 | m = __export_func_regexp__.match(s) | 217 | m = __export_func_regexp__.match(s) |