summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse/parse_py/BBHandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py/BBHandler.py')
-rw-r--r--bitbake/lib/bb/parse/parse_py/BBHandler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py
index fac3e85b36..422ce6f9ef 100644
--- a/bitbake/lib/bb/parse/parse_py/BBHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py
@@ -22,7 +22,7 @@
22 Place, Suite 330, Boston, MA 02111-1307 USA.""" 22 Place, Suite 330, Boston, MA 02111-1307 USA."""
23 23
24import re, bb, os, sys 24import re, bb, os, sys
25import bb.fetch, bb.build 25import bb.fetch, bb.build, bb.utils
26from bb import debug, data, fetch, fatal 26from bb import debug, data, fetch, fatal
27 27
28from ConfHandler import include, localpath, obtain, init 28from ConfHandler import include, localpath, obtain, init
@@ -206,8 +206,8 @@ def feeder(lineno, s, fn, d):
206 return 206 return
207 else: 207 else:
208 text = '\n'.join(__body__) 208 text = '\n'.join(__body__)
209 comp = compile(text, "<bb>", "exec") 209 comp = bb.utils.better_compile(text, "<bb>", fn )
210 exec comp in __builtins__ 210 bb.utils.better_exec(comp, __builtins__, text, fn)
211 __body__ = [] 211 __body__ = []
212 __inpython__ = False 212 __inpython__ = False
213 funcs = data.getVar('__functions__', d) or "" 213 funcs = data.getVar('__functions__', d) or ""