summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes/tasks/task-base.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes/tasks/task-base.bb b/recipes/tasks/task-base.bb
index d59acba026..fc04b46ff5 100644
--- a/recipes/tasks/task-base.bb
+++ b/recipes/tasks/task-base.bb
@@ -136,7 +136,9 @@ python __anonymous () {
import bb
- if not hasattr(__builtins__, 'set'):
+ try:
+ set
+ except NameError:
from sets import Set as set
distro_features = set(bb.data.getVar("DISTRO_FEATURES", d, 1).split())