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:
Chris Larson authored and Richard Purdie committed 2011-05-06 15:50:14 +01:00
1 parent 7fc020aa15
commit d43e7a91f2
1 file changed
+3
+3
View File
@@ -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"""