mirror of
https://github.com/python/cpython.git
synced 2025-10-29 17:38:56 +00:00
Fix typo in example (pointed out by a couple of people, most recently Ken Rimey)
This commit is contained in:
parent
903c3167cf
commit
40c67739ba
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ ThreadPoolExecutor Example
|
||||||
# Start the load operations and mark each future with its URL
|
# 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}
|
future_to_url = {executor.submit(load_url, url, 60):url for url in URLS}
|
||||||
for future in concurrent.futures.as_completed(future_to_url):
|
for future in concurrent.futures.as_completed(future_to_url):
|
||||||
url = future_to_url[url]
|
url = future_to_url[future]
|
||||||
try:
|
try:
|
||||||
data = future.result()
|
data = future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue