summaryrefslogtreecommitdiffstats
path: root/Doc/library/multiprocessing.rst
diff options
context:
space:
mode:
authorJason Yang <1a1a11a@users.noreply.github.com>2017-11-27 01:18:33 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2017-11-27 01:18:33 (GMT)
commitc172fc5031a4035986bef0b2fcef906706d7abf3 (patch)
tree066e8946cd168c5d7b1c879b7177df3c85236a5d /Doc/library/multiprocessing.rst
parentede2ac913eba47131ee1bbc37a9aea344d678576 (diff)
downloadcpython-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.rst4
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')