summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/parse/__init__.py
diff options
context:
space:
mode:
authorHolger Freyther <ich@tamarin.(none)>2009-05-19 12:10:37 +0200
committerRichard Purdie <rpurdie@linux.intel.com>2010-02-15 17:07:51 +0000
commit793c88dd92747890e910c598e19f1778865883d2 (patch)
treed34ec6e00aa689a985a0bb5f45050530c7234fd1 /bitbake/lib/bb/parse/__init__.py
parent3eb2e6cf02155c3fce0a49bd967545cacfc08fb3 (diff)
downloadopenembedded-core-793c88dd92747890e910c598e19f1778865883d2.tar.gz
openembedded-core-793c88dd92747890e910c598e19f1778865883d2.tar.bz2
openembedded-core-793c88dd92747890e910c598e19f1778865883d2.tar.xz
openembedded-core-793c88dd92747890e910c598e19f1778865883d2.zip
bitbake: [parser] Remove the "data" from feeder, evaluate after parsing a file
Evaluate the statements after having parsed one file. This is referred to as "entwirren" and we can remove the direct evaluation and postpone a bit, in the future we can use a cached copy instead of parsing the original. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/parse/__init__.py')
-rw-r--r--bitbake/lib/bb/parse/__init__.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py
index b1308b3b0..6737e061e 100644
--- a/bitbake/lib/bb/parse/__init__.py
+++ b/bitbake/lib/bb/parse/__init__.py
@@ -68,15 +68,11 @@ def supports(fn, data):
return 1
return 0
-def handle(fn, data, include = 0, statements = None):
+def handle(fn, data, include = 0):
"""Call the handler that is appropriate for this file"""
- if not statements:
- import ast
- statements = ast.StatementGroup()
-
for h in handlers:
if h['supports'](fn, data):
- return h['handle'](fn, data, include, statements)
+ return h['handle'](fn, data, include)
raise ParseError("%s is not a BitBake file" % fn)
def init(fn, data):