diff options
author | Holger Freyther <ich@tamarin.(none)> | 2009-05-19 12:10:37 +0200 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-02-15 17:07:51 +0000 |
commit | 793c88dd92747890e910c598e19f1778865883d2 (patch) | |
tree | d34ec6e00aa689a985a0bb5f45050530c7234fd1 /bitbake/lib/bb/parse/__init__.py | |
parent | 3eb2e6cf02155c3fce0a49bd967545cacfc08fb3 (diff) | |
download | poky-793c88dd92747890e910c598e19f1778865883d2.tar.gz |
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__.py | 8 |
1 files changed, 2 insertions, 6 deletions
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): | |||
68 | return 1 | 68 | return 1 |
69 | return 0 | 69 | return 0 |
70 | 70 | ||
71 | def handle(fn, data, include = 0, statements = None): | 71 | def handle(fn, data, include = 0): |
72 | """Call the handler that is appropriate for this file""" | 72 | """Call the handler that is appropriate for this file""" |
73 | if not statements: | ||
74 | import ast | ||
75 | statements = ast.StatementGroup() | ||
76 | |||
77 | for h in handlers: | 73 | for h in handlers: |
78 | if h['supports'](fn, data): | 74 | if h['supports'](fn, data): |
79 | return h['handle'](fn, data, include, statements) | 75 | return h['handle'](fn, data, include) |
80 | raise ParseError("%s is not a BitBake file" % fn) | 76 | raise ParseError("%s is not a BitBake file" % fn) |
81 | 77 | ||
82 | def init(fn, data): | 78 | def init(fn, data): |