mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
utilize yield from
This commit is contained in:
parent
075bbb176f
commit
4993cc0a5b
11 changed files with 18 additions and 36 deletions
|
@ -153,8 +153,7 @@ class WeakValueDictionary(collections.MutableMapping):
|
|||
|
||||
"""
|
||||
with _IterationGuard(self):
|
||||
for wr in self.data.values():
|
||||
yield wr
|
||||
yield from self.data.values()
|
||||
|
||||
def values(self):
|
||||
with _IterationGuard(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue