persist_data: add has_key
(Bitbake rev: 7942833ca0685cf4f3b243dde6203499ef97420c) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
7fc020aa15
commit
d43e7a91f2
|
@ -110,6 +110,9 @@ class SQLTable(collections.MutableMapping):
|
|||
for row in data:
|
||||
yield row[0]
|
||||
|
||||
def has_key(self, key):
|
||||
return key in self
|
||||
|
||||
|
||||
class SQLData(object):
|
||||
"""Object representing the persistent data"""
|
||||
|
|
Loading…
Reference in New Issue