diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-26 18:06:30 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-31 12:08:51 +0100 |
commit | 13fdd4ae5d5709332d84427ff8e60dc9ba62974f (patch) | |
tree | 92f9e97a2914139c46af87f2733486d3fdbfd65d /bitbake/lib/bb/parse/parse_py | |
parent | f7627e4f677c628bf25ccbf4973ac3e4cd986dee (diff) | |
download | openembedded-core-13fdd4ae5d5709332d84427ff8e60dc9ba62974f.tar.gz openembedded-core-13fdd4ae5d5709332d84427ff8e60dc9ba62974f.tar.bz2 openembedded-core-13fdd4ae5d5709332d84427ff8e60dc9ba62974f.zip |
bitbake/BBHandler: Save python functions into the dictonary
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/parse/parse_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): __body__.append(s) return else: - ast.handlePythonMethod(statements, root, __body__, fn) + ast.handlePythonMethod(statements, __inpython__, root, __body__, fn) __body__ = [] __inpython__ = False @@ -210,7 +210,8 @@ def feeder(lineno, s, fn, root, statements): m = __def_regexp__.match(s) if m: __body__.append(s) - __inpython__ = True + __inpython__ = m.group(1) + return m = __export_func_regexp__.match(s) |