diff options
author | Jason Yang <1a1a11a@users.noreply.github.com> | 2017-11-27 01:18:33 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2017-11-27 01:18:33 (GMT) |
commit | c172fc5031a4035986bef0b2fcef906706d7abf3 (patch) | |
tree | 066e8946cd168c5d7b1c879b7177df3c85236a5d /Doc/library/multiprocessing.rst | |
parent | ede2ac913eba47131ee1bbc37a9aea344d678576 (diff) | |
download | cpython-c172fc5031a4035986bef0b2fcef906706d7abf3.zip cpython-c172fc5031a4035986bef0b2fcef906706d7abf3.tar.gz cpython-c172fc5031a4035986bef0b2fcef906706d7abf3.tar.bz2 |
bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)
Diffstat (limited to 'Doc/library/multiprocessing.rst')
-rw-r--r-- | Doc/library/multiprocessing.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 3619ccc..8b3081c 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -1837,8 +1837,8 @@ Running the following commands creates a server for a single shared queue which remote clients can access:: >>> from multiprocessing.managers import BaseManager - >>> import queue - >>> queue = queue.Queue() + >>> from queue import Queue + >>> queue = Queue() >>> class QueueManager(BaseManager): pass >>> QueueManager.register('get_queue', callable=lambda:queue) >>> m = QueueManager(address=('', 50000), authkey=b'abracadabra') |