* [PATCH] persist_data: Fix py3 update stack overflow
@ 2016-08-10 15:00 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-08-10 15:00 UTC (permalink / raw)
To: bitbake-devel
Revision d0f904d407f57998419bd9c305ce53e5eaa36b24 accidentally broke
items() and values() and made them cause stack overflows. Undo that
breakage.
Signed-off-by: Richard Purdie <richard.purdie@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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-10 15:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-10 15:00 [PATCH] persist_data: Fix py3 update stack overflow Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.