[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1793/8267] bitbake: persist_data: Fix py3 update stack overflow
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 1793/8267] bitbake: persist_data: Fix py3 update stack overflow
- Date: Sat, 16 Dec 2017 22:19:31 +0000 (UTC)
commit 82da1e6f6c4f2eee87ec5f100ad6d65b2b6372dc
Author: Richard Purdie <richard purdie linuxfoundation org>
Date: Wed Aug 10 16:00:33 2016 +0100
bitbake: persist_data: Fix py3 update stack overflow
Revision d0f904d407f57998419bd9c305ce53e5eaa36b24 accidentally broke
items() and values() and made them cause stack overflows. Undo that
breakage.
(Bitbake rev: 88c5beca705efa7df4a96fb2aaf3f13c336ac328)
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
bitbake/lib/bb/persist_data.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py
index 403f3a5..bb6deca 100644
--- a/bitbake/lib/bb/persist_data.py
+++ b/bitbake/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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]