Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 40c6773

Browse files
committed
Fix typo in example (pointed out by a couple of people, most recently Ken Rimey)
1 parent 903c316 commit 40c6773

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/concurrent.futures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ ThreadPoolExecutor Example
146146
# Start the load operations and mark each future with its URL
147147
future_to_url = {executor.submit(load_url, url, 60):url for url in URLS}
148148
for future in concurrent.futures.as_completed(future_to_url):
149-
url = future_to_url[url]
149+
url = future_to_url[future]
150150
try:
151151
data = future.result()
152152
except Exception as exc:

0 commit comments

Comments
 (0)