From 793c88dd92747890e910c598e19f1778865883d2 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Tue, 19 May 2009 12:10:37 +0200 Subject: 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 --- bitbake/lib/bb/parse/__init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bitbake/lib/bb/parse/__init__.py') diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py index b1308b3b04..6737e061ea 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): -- cgit v1.2.3-54-g00ecf