summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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__: