From 4993cc0a5b34dc91da2b41c50e33d809f0191355 Mon Sep 17 00:00:00 2001 From: Philip Jenvey Date: Mon, 1 Oct 2012 12:53:43 -0700 Subject: utilize yield from --- Lib/weakref.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Lib/weakref.py') diff --git a/Lib/weakref.py b/Lib/weakref.py index fcb6b74d1b1..339fcf4718d 100644 --- a/Lib/weakref.py +++ b/Lib/weakref.py @@ -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): -- cgit v1.2.3