diff options
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 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): |