summaryrefslogtreecommitdiff
path: root/Lib/concurrent
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2012-10-01 12:53:43 -0700
committerPhilip Jenvey <pjenvey@underboss.org>2012-10-01 12:53:43 -0700
commit4993cc0a5b34dc91da2b41c50e33d809f0191355 (patch)
tree5f4a1327469a43d4bbaa876e13e22a316731775d /Lib/concurrent
parent075bbb176f69e3da013e39d847caaea9b0cee334 (diff)
downloadcpython-git-4993cc0a5b34dc91da2b41c50e33d809f0191355.tar.gz
utilize yield from
Diffstat (limited to 'Lib/concurrent')
-rw-r--r--Lib/concurrent/futures/_base.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/concurrent/futures/_base.py b/Lib/concurrent/futures/_base.py
index 1e098be33f..883d993ce3 100644
--- a/Lib/concurrent/futures/_base.py
+++ b/Lib/concurrent/futures/_base.py
@@ -198,8 +198,7 @@ def as_completed(fs, timeout=None):
waiter = _create_and_install_waiters(fs, _AS_COMPLETED)
try:
- for future in finished:
- yield future
+ yield from finished
while pending:
if timeout is None: