summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-07-24 00:30:29 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-07-24 00:30:29 (GMT)
commit9f5388f24fd25c4788fb68251737b4cc238c8960 (patch)
tree34944dc9427b411d338ba22d56f4b9bd0d55e1eb /Doc
parentb8352e7253e61e24f6ba3f06cda6135a3c976884 (diff)
downloadcpython-9f5388f24fd25c4788fb68251737b4cc238c8960.zip
cpython-9f5388f24fd25c4788fb68251737b4cc238c8960.tar.gz
cpython-9f5388f24fd25c4788fb68251737b4cc238c8960.tar.bz2
Fix doc example bug reported on python-list by Akshay Verma.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/multiprocessing.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index 2763398..471d572 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -398,7 +398,7 @@ For example::
print(res.get(timeout=1)) # prints "100"
# make worker sleep for 10 secs
- res = pool.apply_async(sleep, 10)
+ res = pool.apply_async(sleep, [10])
print(res.get(timeout=1)) # raises multiprocessing.TimeoutError
# exiting the 'with'-block has stopped the pool