aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/COW.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-11 17:21:14 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:33 +0100
commit5b216c8000dbc3ed9f3e996242eb24269fcaf919 (patch)
treedeedd448b48a80f958bfea86d7255cbd9319a99c /bitbake/lib/bb/COW.py
parentd5927a70bb8de5f2fbabdcf6405ca6129ffb2c17 (diff)
downloadopenembedded-core-contrib-5b216c8000dbc3ed9f3e996242eb24269fcaf919.tar.gz
Add __contains__ to COWDictMeta
(Bitbake rev: b3b314aade1f0a04e888361e1ac946e5195e1509) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/COW.py')
-rw-r--r--bitbake/lib/bb/COW.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/COW.py b/bitbake/lib/bb/COW.py
index b0afb5fa08..ccb7cde3ba 100644
--- a/bitbake/lib/bb/COW.py
+++ b/bitbake/lib/bb/COW.py
@@ -119,6 +119,9 @@ class COWDictMeta(COWMeta):
key += MUTABLE
delattr(cls, key)
+ def __contains__(cls, key):
+ return cls.has_key(key)
+
def has_key(cls, key):
value = cls.__getreadonly__(key, cls.__marker__)
if value is cls.__marker__: