[Python-checkins] cpython (3.3): Fix typo in example (pointed out by a couple of people, most recently Ken Rimey)

nick.coghlan python-checkins at python.org
Sat Oct 20 12:13:51 CEST 2012


http://hg.python.org/cpython/rev/4adc11300c05
changeset:   79848:4adc11300c05
branch:      3.3
parent:      79846:ee0c0f1c1eb2
user:        Nick Coghlan <ncoghlan at gmail.com>
date:        Sat Oct 20 20:13:21 2012 +1000
summary:
  Fix typo in example (pointed out by a couple of people, most recently Ken Rimey)

files:
  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
--- a/Doc/library/concurrent.futures.rst
+++ b/Doc/library/concurrent.futures.rst
@@ -146,7 +146,7 @@
        # 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:

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list