]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake: BBHandler: pass lineno and fn to handleMethod
authorKhem Raj <raj.khem@gmail.com>
Sat, 23 Jan 2010 03:23:00 +0000 (19:23 -0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Wed, 10 Feb 2010 16:43:06 +0000 (16:43 +0000)
* lineno and fn are needed in handleMethod
  to restore the functionality as it was before.

(Bitbake rev: ac6792045959cfee56279c1c4597521e990848e7)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Chris Larson <clarson@kergoth.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/parse/parse_py/BBHandler.py

index 47502adc3c2f89f74d4c3c2de3cca7b74a92fccd..76deb6b453efd14184480cdfcfbb2b2f80f72602 100644 (file)
@@ -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: