From 0098a5334c33f4ca504733df67e66fb762c9df1c 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 fcb6b74d1b..339fcf4718 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.1