From b28f5672ab55ea303727e9f03bc594c7774d597e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 13 Mar 2019 20:00:03 +0000 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: c0af6c81f8d5487ea2cef54a78fd1cb1d0dc6520) Signed-off-by: Richard Purdie (cherry picked from commit 407d6e07b09123c12c382b4a92107f002c314b05) Signed-off-by: Luca Boccassi Signed-off-by: Richard Purdie --- bitbake/lib/bb/COW.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib') 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