summaryrefslogtreecommitdiffstats
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)
downloadpoky-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):
119 key += MUTABLE 119 key += MUTABLE
120 delattr(cls, key) 120 delattr(cls, key)
121 121
122 def __contains__(cls, key):
123 return cls.has_key(key)
124
122 def has_key(cls, key): 125 def has_key(cls, key):
123 value = cls.__getreadonly__(key, cls.__marker__) 126 value = cls.__getreadonly__(key, cls.__marker__)
124 if value is cls.__marker__: 127 if value is cls.__marker__: