Skip to content

Commit c172fc5

Browse files
1a1a11aberkerpeksag
authored andcommitted
bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)
1 parent ede2ac9 commit c172fc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/multiprocessing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,8 +1837,8 @@ Running the following commands creates a server for a single shared queue which
18371837
remote clients can access::
18381838

18391839
>>> from multiprocessing.managers import BaseManager
1840-
>>> import queue
1841-
>>> queue = queue.Queue()
1840+
>>> from queue import Queue
1841+
>>> queue = Queue()
18421842
>>> class QueueManager(BaseManager): pass
18431843
>>> QueueManager.register('get_queue', callable=lambda:queue)
18441844
>>> m = QueueManager(address=('', 50000), authkey=b'abracadabra')

0 commit comments

Comments
 (0)