[Bitbake-dev] [PATCH] BBHandler: pass lineno and fn to handleMethod
Christopher Larson
kergoth at gmail.com
Tue Jan 26 19:03:29 CET 2010
On Jan 22, 2010, at 8:23 PM, Khem Raj wrote:
>
> * lineno and fn are needed in handleMethod
> to restore the functionality as it was before.
>
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
> lib/bb/parse/parse_py/BBHandler.py | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/bb/parse/parse_py/BBHandler.py b/lib/bb/parse/parse_py/BBHandler.py
> index 47502ad..76deb6b 100644
> --- a/lib/bb/parse/parse_py/BBHandler.py
> +++ b/lib/bb/parse/parse_py/BBHandler.py
> @@ -57,7 +57,7 @@ IN_PYTHON_EOF = -9999999999999
> __parsed_methods__ = methodpool.get_parsed_dict()
>
> # parsing routines, to be moved into AST classes
> -def handleMethod(func_name, body, d):
> +def handleMethod(func_name, lineno, fn, body, d):
> if func_name == "__anonymous":
> funcname = ("__anon_%s_%s" % (lineno, fn.translate(string.maketrans('/.+-', '____'))))
> if not funcname in methodpool._parsed_fns:
> @@ -321,7 +321,7 @@ def feeder(lineno, s, fn, root, d):
> if __infunc__:
> if s == '}':
> __body__.append('')
> - handleMethod(__infunc__, __body__, d)
> + handleMethod(__infunc__, lineno, fn, __body__, d)
> __infunc__ = ""
> __body__ = []
> else:
> --
> 1.6.5
Applied to master, thanks.
--
Chris Larson
clarson at kergoth dot com
clarson at mvista dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Software Engineer
MontaVista Software, Inc.
More information about the bitbake-devel
mailing list