]> code.ossystems Code Review - openembedded-core.git/commitdiff
Add __contains__ to COWDictMeta
authorChris Larson <chris_larson@mentor.com>
Mon, 12 Apr 2010 00:21:14 +0000 (17:21 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 2 Jul 2010 14:41:33 +0000 (15:41 +0100)
(Bitbake rev: b3b314aade1f0a04e888361e1ac946e5195e1509)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/COW.py

index b0afb5fa0846170feeaa900da774ecc08833c66b..ccb7cde3ba760d244e3916b48d372553e524f50f 100644 (file)
@@ -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__: