]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake persist_data: Fix for python 2.4
authorRichard Purdie <richard@openedhand.com>
Sat, 4 Aug 2007 23:58:56 +0000 (23:58 +0000)
committerRichard Purdie <richard@openedhand.com>
Sat, 4 Aug 2007 23:58:56 +0000 (23:58 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2366 311d38ba-8fff-0310-9ca6-ca027cbcb966

bitbake/lib/bb/persist_data.py

index 0f31b4c8452bda079dbbe9a67e3a1c15219a6751..0b88dadba577f87b79759e8519920395daaf6af4 100644 (file)
@@ -92,10 +92,10 @@ class PersistData:
         """
         self._execute("DELETE from %s where key=?;" % domain, [key])
 
-    def _execute(self, **query):
+    def _execute(self, *query):
         while True:    
             try:
-                self.connection.execute(query)
+                self.connection.execute(*query)
                 return
             except sqlite3.OperationalError, e:
                 if 'database is locked' in str(e):