summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data_smart.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r--bitbake/lib/bb/data_smart.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index 741790502f..52f391dec1 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -29,7 +29,7 @@ Based on functions from the base bb module, Copyright 2003 Holger Schurig
"""
import copy, os, re, sys, time, types
-from bb import note, debug, fatal
+from bb import note, debug, fatal, utils
try:
import cPickle as pickle
@@ -287,8 +287,8 @@ class DataSmartPackage(DataSmart):
self.unpickle_prep()
funcstr = self.getVar('__functions__', 0)
if funcstr:
- comp = compile(funcstr, "<pickled>", "exec")
- exec comp in __builtins__
+ comp = utils.better_compile(funcstr, "<pickled>", self.bbfile)
+ utils.better_exec(comp, __builtins__, funcstr, self.bbfile)
def linkDataSet(self):
if not self.parent == None: