diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-04-11 17:21:14 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-04-11 17:21:26 -0700 |
commit | b3b314aade1f0a04e888361e1ac946e5195e1509 (patch) | |
tree | 53d9e4adb203868acf5c69a88147b4afc589c86a /lib/bb/COW.py | |
parent | 188af3ef5fdb5cd86b74147bf5eafc085ac489be (diff) | |
download | bitbake-contrib-b3b314aade1f0a04e888361e1ac946e5195e1509.tar.gz |
Add __contains__ to COWDictMeta
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/COW.py')
-rw-r--r-- | lib/bb/COW.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/COW.py b/lib/bb/COW.py index b0afb5fa0..ccb7cde3b 100644 --- a/lib/bb/COW.py +++ b/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__: |