Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f86b28e

Browse files
committed
#14535: fix code highlight in multiprocessing examples. Patch by Tshepang Lekhonkhobe.
1 parent 650dfaf commit f86b28e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Doc/library/multiprocessing.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ The results printed are ::
11141114
HELLO WORLD
11151115
[(3.515625, 39.0625), (33.0625, 4.0), (5.640625, 90.25)]
11161116

1117-
.. highlight:: python
1117+
.. highlight:: python3
11181118

11191119

11201120
.. _multiprocessing-managers:
@@ -2256,16 +2256,19 @@ Examples
22562256
Demonstration of how to create and use customized managers and proxies:
22572257

22582258
.. literalinclude:: ../includes/mp_newtype.py
2259+
:language: python3
22592260

22602261

22612262
Using :class:`Pool`:
22622263

22632264
.. literalinclude:: ../includes/mp_pool.py
2265+
:language: python3
22642266

22652267

22662268
Synchronization types like locks, conditions and queues:
22672269

22682270
.. literalinclude:: ../includes/mp_synchronize.py
2271+
:language: python3
22692272

22702273

22712274
An example showing how to use queues to feed tasks to a collection of worker

0 commit comments

Comments
 (0)