diff options
author | brian.quinlan <devnull@localhost> | 2009-10-16 04:42:55 +0000 |
---|---|---|
committer | brian.quinlan <devnull@localhost> | 2009-10-16 04:42:55 +0000 |
commit | 563ca003dc2caeae6eb9f635bfc15d4da4be58e2 (patch) | |
tree | 06f62fd672c4a66d2443a4b1f8f4c16dd455fb1e | |
parent | a95fd1b69d70037f5e68ed053fcbe8da4a795b2b (diff) | |
download | futures-563ca003dc2caeae6eb9f635bfc15d4da4be58e2.tar.gz |
Removed trailing whitespace
-rw-r--r-- | PEP.txt | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -40,20 +40,20 @@ Example import functools import urllib.request import futures - + URLS = ['http://www.foxnews.com/', 'http://www.cnn.com/', 'http://europe.wsj.com/', 'http://www.bbc.co.uk/', 'http://some-made-up-domain.com/'] - + def load_url(url, timeout): return urllib.request.urlopen(url, timeout=timeout).read() - + with futures.ThreadPoolExecutor(max_threads=5) as executor: future_list = executor.run_to_futures( [functools.partial(load_url, url, 30) for url in URLS]) - + for url, future in zip(URLS, future_list): if future.exception() is not None: print('%r generated an exception: %s' % (url, future.exception())) @@ -151,7 +151,7 @@ to the wait time. following constants: ============================= ================================================== - Constant Description + Constant Description ============================= ================================================== `FIRST_COMPLETED` The method will return when any call finishes. `FIRST_EXCEPTION` The method will return when any call raises an @@ -275,7 +275,7 @@ time. If the future is cancelled before completing then `CancelledError` will be raised. -If the call completed without raising then ``None`` is returned. +If the call completed without raising then ``None`` is returned. `index` @@ -324,7 +324,7 @@ deadlock in certain cases. These cases are not currently well understood and mus be resolved before the process-based implementation can be considered for inclusion in this PEP/package. -========== +========== References ========== |