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

This commit is contained in:
Jason Yang 2017-11-26 20:18:33 -05:00 committed by Berker Peksag
parent ede2ac913e
commit c172fc5031

View File

@ -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')