diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-03-24 16:56:12 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-04-09 19:38:37 -0700 |
commit | 2caf134b43a44dad30af4fbe33033b3c58deee57 (patch) | |
tree | f0f72340efc339293efe2629864dc215b8576ba9 /lib/bb/persist_data.py | |
parent | 297305b3742323d09d9ca58e958c4f18e945a148 (diff) | |
download | bitbake-contrib-2caf134b43a44dad30af4fbe33033b3c58deee57.tar.gz |
Formatting cleanups
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/persist_data.py')
-rw-r--r-- | lib/bb/persist_data.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py index bc4045fe8..e2bbbe54f 100644 --- a/lib/bb/persist_data.py +++ b/lib/bb/persist_data.py @@ -33,11 +33,11 @@ class PersistData: """ BitBake Persistent Data Store - Used to store data in a central location such that other threads/tasks can + Used to store data in a central location such that other threads/tasks can access them at some future date. - The "domain" is used as a key to isolate each data pool and in this - implementation corresponds to an SQL table. The SQL table consists of a + The "domain" is used as a key to isolate each data pool and in this + implementation corresponds to an SQL table. The SQL table consists of a simple key and value pair. Why sqlite? It handles all the locking issues for us. @@ -78,7 +78,7 @@ class PersistData: for row in data: ret[str(row[0])] = str(row[1]) - return ret + return ret def getValue(self, domain, key): """ @@ -108,7 +108,7 @@ class PersistData: self._execute("DELETE from %s where key=?;" % domain, [key]) def _execute(self, *query): - while True: + while True: try: self.connection.execute(*query) return @@ -116,6 +116,3 @@ class PersistData: if 'database is locked' in str(e): continue raise - - - |