From 7be6abc98d6e78814ac1a94ebb162073671659b8 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 21 Sep 2018 19:55:26 -0700 Subject: bitbake: COW: Fix StopIteration warning 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. (Bitbake rev: 407d6e07b09123c12c382b4a92107f002c314b05) Signed-off-by: Richard Purdie --- bitbake/lib/bb/COW.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/COW.py b/bitbake/lib/bb/COW.py index bec6208096..7817473ab8 100644 --- a/bitbake/lib/bb/COW.py +++ b/bitbake/lib/bb/COW.py @@ -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") -- cgit v1.2.3-54-g00ecf