[Python-checkins] bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)

Berker Peksag webhook-mailer at python.org
Sun Nov 26 20:18:36 EST 2017


https://github.com/python/cpython/commit/c172fc5031a4035986bef0b2fcef906706d7abf3
commit: c172fc5031a4035986bef0b2fcef906706d7abf3
branch: master
author: Jason Yang <1a1a11a at users.noreply.github.com>
committer: Berker Peksag <berker.peksag at gmail.com>
date: 2017-11-27T04:18:33+03:00
summary:

bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)

files:
M Doc/library/multiprocessing.rst

diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index 3619cccfe63..8b3081cb80c 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')



More information about the Python-checkins mailing list