From 71d0e0501bb80469ba93e6f5bbdddbe985c0acc0 Mon Sep 17 00:00:00 2001
From: Chris Larson <chris_larson@mentor.com>
Date: Thu, 8 Apr 2010 17:24:49 -0700
Subject: task-base: change the 'set' logic to work a bit better

Signed-off-by: Chris Larson <chris_larson@mentor.com>
---
 recipes/tasks/task-base.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/recipes/tasks/task-base.bb b/recipes/tasks/task-base.bb
index 555a463635..bc1324ba86 100644
--- a/recipes/tasks/task-base.bb
+++ b/recipes/tasks/task-base.bb
@@ -137,9 +137,9 @@ python __anonymous () {
     import bb
 
     try:
-	set
-    except NameError:
-	from sets import Set as set
+        set = __builtins__["set"]
+    except KeyError:
+        from sets import Set as set
 
     distro_features = set(bb.data.getVar("DISTRO_FEATURES", d, 1).split())
     machine_features= set(bb.data.getVar("MACHINE_FEATURES", d, 1).split())
-- 
cgit v1.2.3