diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-09 15:10:56 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-10 13:32:46 +0000 |
commit | 99184d7879723f73b67dccf3754263729662cbea (patch) | |
tree | 28d3bad497b2f402de5d26b16d9fc3a9d41e0cac /bitbake/lib/bb/parse/parse_py | |
parent | 6ba69b43831cf1e0968c64dc977056d860e70ba4 (diff) | |
download | poky-99184d7879723f73b67dccf3754263729662cbea.tar.gz |
bitbake: BBHandler/ast: Merge handMethod and handleMethodFlags
The functionality overlap between these two functions is significant and
its clearer to handle both things together since they are intimately
linked. There should be no behaviour change, just clearer code.
(Bitbake rev: 391aa4afc91be90d8d3ee47e1bf797d6ebe61a71)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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) |