summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse/__init__.py
diff options
context:
space:
mode:
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 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
71def handle(fn, data, include = 0, statements = None): 71def 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
82def init(fn, data): 78def init(fn, data):