aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-13 20:00:03 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-13 14:38:29 -0700
commitc0af6c81f8d5487ea2cef54a78fd1cb1d0dc6520 (patch)
treef2aefe6266402b92c608a2d096c62982f3d97307
parent4f6ba26e8335f975038d90b9e1c1767160bd5272 (diff)
downloadbitbake-1.38.tar.gz
bitbake-1.38.tar.bz2
bitbake-1.38.zip
COW: Fix StopIteration warning1.38
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 <richard.purdie@linuxfoundation.org> (cherry picked from commit 407d6e07b09123c12c382b4a92107f002c314b05) Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/COW.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/COW.py b/lib/bb/COW.py
index bec62080..7817473a 100644
--- a/lib/bb/COW.py
+++ b/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")