diff options
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py')
| -rw-r--r-- | bitbake/lib/bb/parse/parse_py/BBHandler.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index 97a9ee8dac..ef72c3700f 100644 --- a/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py | |||
| @@ -166,7 +166,7 @@ def feeder(lineno, s, fn, root, statements, eof=False): | |||
| 166 | if __infunc__: | 166 | if __infunc__: |
| 167 | if s == '}': | 167 | if s == '}': |
| 168 | __body__.append('') | 168 | __body__.append('') |
| 169 | ast.handleMethod(statements, fn, lineno, __infunc__[0], __body__) | 169 | ast.handleMethod(statements, fn, lineno, __infunc__[0], __body__, __infunc__[3], __infunc__[4]) |
| 170 | __infunc__ = [] | 170 | __infunc__ = [] |
| 171 | __body__ = [] | 171 | __body__ = [] |
| 172 | else: | 172 | else: |
| @@ -211,8 +211,7 @@ def feeder(lineno, s, fn, root, statements, eof=False): | |||
| 211 | 211 | ||
| 212 | m = __func_start_regexp__.match(s) | 212 | m = __func_start_regexp__.match(s) |
| 213 | if m: | 213 | if m: |
| 214 | __infunc__ = [m.group("func") or "__anonymous", fn, lineno] | 214 | __infunc__ = [m.group("func") or "__anonymous", fn, lineno, m.group("py") is not None, m.group("fr") is not None] |
| 215 | ast.handleMethodFlags(statements, fn, lineno, __infunc__[0], m) | ||
| 216 | return | 215 | return |
| 217 | 216 | ||
| 218 | m = __def_regexp__.match(s) | 217 | m = __def_regexp__.match(s) |
