From: Richard Purdie Date: Sat, 22 Sep 2018 02:55:26 +0000 (-0700) Subject: bitbake: COW: Fix StopIteration warning X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7be6abc98d6e78814ac1a94ebb162073671659b8;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/bitbake/lib/bb/COW.py b/bitbake/lib/bb/COW.py index bec62080967..7817473ab80 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")