From: Chris Larson Date: Mon, 12 Apr 2010 00:21:14 +0000 (-0700) Subject: Add __contains__ to COWDictMeta X-Git-Tag: 2011-1~5522 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=5b216c8000dbc3ed9f3e996242eb24269fcaf919;p=openembedded-core.git Add __contains__ to COWDictMeta (Bitbake rev: b3b314aade1f0a04e888361e1ac946e5195e1509) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- 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__: