]> granicus.if.org Git - python/commitdiff
#14535: fix code highlight in multiprocessing examples. Patch by Tshepang Lekhonkhobe.
authorEzio Melotti <ezio.melotti@gmail.com>
Sat, 14 Apr 2012 02:50:48 +0000 (20:50 -0600)
committerEzio Melotti <ezio.melotti@gmail.com>
Sat, 14 Apr 2012 02:50:48 +0000 (20:50 -0600)
Doc/library/multiprocessing.rst

index 7db2aed1bc71db6f50dbcb0f41604c1776d9e374..a9512f3358a4cb50cb5b4157cabe51237f2eee69 100644 (file)
@@ -1114,7 +1114,7 @@ The results printed are ::
     HELLO WORLD
     [(3.515625, 39.0625), (33.0625, 4.0), (5.640625, 90.25)]
 
-.. highlight:: python
+.. highlight:: python3
 
 
 .. _multiprocessing-managers:
@@ -2256,16 +2256,19 @@ Examples
 Demonstration of how to create and use customized managers and proxies:
 
 .. literalinclude:: ../includes/mp_newtype.py
+   :language: python3
 
 
 Using :class:`Pool`:
 
 .. literalinclude:: ../includes/mp_pool.py
+   :language: python3
 
 
 Synchronization types like locks, conditions and queues:
 
 .. literalinclude:: ../includes/mp_synchronize.py
+   :language: python3
 
 
 An example showing how to use queues to feed tasks to a collection of worker