summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse/parse_py/BBHandler.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-26 18:06:30 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-31 12:08:51 +0100
commit13fdd4ae5d5709332d84427ff8e60dc9ba62974f (patch)
tree92f9e97a2914139c46af87f2733486d3fdbfd65d /bitbake/lib/bb/parse/parse_py/BBHandler.py
parentf7627e4f677c628bf25ccbf4973ac3e4cd986dee (diff)
downloadpoky-13fdd4ae5d5709332d84427ff8e60dc9ba62974f.tar.gz
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/BBHandler.py')
-rw-r--r--bitbake/lib/bb/parse/parse_py/BBHandler.py5
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):
183 __body__.append(s) 183 __body__.append(s)
184 return 184 return
185 else: 185 else:
186 ast.handlePythonMethod(statements, root, __body__, fn) 186 ast.handlePythonMethod(statements, __inpython__, root, __body__, fn)
187 __body__ = [] 187 __body__ = []
188 __inpython__ = False 188 __inpython__ = False
189 189
@@ -210,7 +210,8 @@ def feeder(lineno, s, fn, root, statements):
210 m = __def_regexp__.match(s) 210 m = __def_regexp__.match(s)
211 if m: 211 if m:
212 __body__.append(s) 212 __body__.append(s)
213 __inpython__ = True 213 __inpython__ = m.group(1)
214
214 return 215 return
215 216
216 m = __export_func_regexp__.match(s) 217 m = __export_func_regexp__.match(s)