diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-04-11 17:21:14 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:33 +0100 |
commit | 5b216c8000dbc3ed9f3e996242eb24269fcaf919 (patch) | |
tree | deedd448b48a80f958bfea86d7255cbd9319a99c /bitbake | |
parent | d5927a70bb8de5f2fbabdcf6405ca6129ffb2c17 (diff) | |
download | openembedded-core-5b216c8000dbc3ed9f3e996242eb24269fcaf919.tar.gz openembedded-core-5b216c8000dbc3ed9f3e996242eb24269fcaf919.tar.bz2 openembedded-core-5b216c8000dbc3ed9f3e996242eb24269fcaf919.tar.xz openembedded-core-5b216c8000dbc3ed9f3e996242eb24269fcaf919.zip |
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')
-rw-r--r-- | bitbake/lib/bb/COW.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/COW.py b/bitbake/lib/bb/COW.py index b0afb5fa0..ccb7cde3b 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__: |