[oe-commits] [bitbake] branch 1.38 updated: COW: Fix StopIteration warning
git at git.openembedded.org
git at git.openembedded.org
Wed Mar 13 21:39:33 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch 1.38
in repository bitbake.
The following commit(s) were added to refs/heads/1.38 by this push:
new c0af6c8 COW: Fix StopIteration warning
c0af6c8 is described below
commit c0af6c81f8d5487ea2cef54a78fd1cb1d0dc6520
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Mar 13 20:00:03 2019 +0000
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.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
(cherry picked from commit 407d6e07b09123c12c382b4a92107f002c314b05)
Signed-off-by: Luca Boccassi <luca.boccassi at microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/COW.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/COW.py b/lib/bb/COW.py
index bec6208..7817473 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")
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list