diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-11-27 01:22:50 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2017-11-27 01:22:50 (GMT) |
commit | 8a957534f5182022ee8ac2dbaac4b4900dc98159 (patch) | |
tree | 796ac8d1e9b35ac32e3c5b2ab08b4570c60953e5 | |
parent | cceb0f8d7b3451fb8de03651c979f5ac639b68c0 (diff) | |
download | cpython-8a957534f5182022ee8ac2dbaac4b4900dc98159.zip cpython-8a957534f5182022ee8ac2dbaac4b4900dc98159.tar.gz cpython-8a957534f5182022ee8ac2dbaac4b4900dc98159.tar.bz2 |
bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)
(cherry picked from commit c172fc5031a4035986bef0b2fcef906706d7abf3)
-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 6577ea6..9521f77 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -1821,8 +1821,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') |