From 40c67739ba463b8aaa302cbcc4eb614294fb45d8 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Sat, 20 Oct 2012 20:13:21 +1000 Subject: [PATCH] Fix typo in example (pointed out by a couple of people, most recently Ken Rimey) --- Doc/library/concurrent.futures.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/concurrent.futures.rst b/Doc/library/concurrent.futures.rst index 62d8eac69ec..7ed99d56192 100644 --- a/Doc/library/concurrent.futures.rst +++ b/Doc/library/concurrent.futures.rst @@ -146,7 +146,7 @@ ThreadPoolExecutor Example # Start the load operations and mark each future with its URL future_to_url = {executor.submit(load_url, url, 60):url for url in URLS} for future in concurrent.futures.as_completed(future_to_url): - url = future_to_url[url] + url = future_to_url[future] try: data = future.result() except Exception as exc: