more yield from

patch by Serhiy Storchaka
This commit is contained in:
Philip Jenvey 2012-10-01 15:34:31 -07:00
parent 8bfcf51b5d
commit fd0d3e5d25
5 changed files with 22 additions and 39 deletions

View file

@ -1193,8 +1193,7 @@ def deepvalues(mapping):
pass
else:
mapping = True
for subobj in deepvalues(obj):
yield subobj
yield from deepvalues(obj)
if not mapping:
yield obj