diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2012-10-20 20:13:21 +1000 |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2012-10-20 20:13:21 +1000 |
commit | 40c67739ba463b8aaa302cbcc4eb614294fb45d8 (patch) | |
tree | 5dc9bb19208c6b30cc2ab2679eedceed43c30635 /Doc/library/concurrent.futures.rst | |
parent | 903c3167cf03c87f0cd4a64225e8067f3168dc8f (diff) | |
download | cpython-git-40c67739ba463b8aaa302cbcc4eb614294fb45d8.tar.gz |
Fix typo in example (pointed out by a couple of people, most recently Ken Rimey)
Diffstat (limited to 'Doc/library/concurrent.futures.rst')
-rw-r--r-- | Doc/library/concurrent.futures.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/concurrent.futures.rst b/Doc/library/concurrent.futures.rst index 62d8eac69e..7ed99d5619 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: |