COW: Fix StopIteration warning
PATCH 1/1 COW: Fix StopIteration warning
From: Richard Purdie <[email protected]>
Fix the warning:
WARNING: lib/bb/data_smart.py:235: DeprecationWarning: generator 'COWDictMeta.iter' raised StopIteration
for k, v in self.variables.iteritems():
by using return from the generator, not raising StopIteration.
Signed-off-by Richard Purdie <[email protected]>
(cherry picked from commit 407d6e07b09123c12c382b4a92107f002c314b05)
Signed-off-by Luca Boccassi <[email protected]>
---
Backporting this patch to 1.38 fixes running bitbake on Sumo on Debian 10, which about to become the new Debian stable.
lib/bb/COW.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/COW.py +1 -1
@@ -150,7 +150,7 @@ class COWDictMeta(COWMeta): yield value if type == "items": yield (key, value) - raise StopIteration() + return def iterkeys(cls): return cls.iter("keys")
Signature · 1 line
2.20.1