[oe-commits] [bitbake] branch master-next updated: persist_data: Fix py3 update stack overflow

git at git.openembedded.org git at git.openembedded.org
Wed Aug 10 23:07:52 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

The following commit(s) were added to refs/heads/master-next by this push:
       new  b666745   persist_data: Fix py3 update stack overflow
b666745 is described below

commit b6667455f66b12ebc9f983dfa72e0864dfa8a77b
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Aug 10 15:58:57 2016 +0100

    persist_data: Fix py3 update stack overflow
    
    Revision d0f904d407f57998419bd9c305ce53e5eaa36b24 accidentally broke
    items() and values() and made them cause stack overflows. Undo that
    breakage.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/persist_data.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py
index 403f3a5..bb6deca 100644
--- a/lib/bb/persist_data.py
+++ b/lib/bb/persist_data.py
@@ -131,14 +131,14 @@ class SQLTable(collections.MutableMapping):
         return [row[1] for row in data]
 
     def values(self):
-        return list(self.values())
+        return list(self.itervalues())
 
     def itervalues(self):
         data = self._execute("SELECT value FROM %s;" % self.table)
         return (row[0] for row in data)
 
     def items(self):
-        return list(self.items())
+        return list(self.iteritems())
 
     def iteritems(self):
         return self._execute("SELECT * FROM %s;" % self.table)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list