[Python-checkins] cpython (3.2): #14535: fix code highlight in multiprocessing examples. Patch by Tshepang

ezio.melotti python-checkins at python.org
Sat Apr 14 04:52:42 CEST 2012


http://hg.python.org/cpython/rev/635966f6d3de
changeset:   76297:635966f6d3de
branch:      3.2
parent:      76294:b3b7f9dd7ce4
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Fri Apr 13 20:50:48 2012 -0600
summary:
  #14535: fix code highlight in multiprocessing examples.  Patch by Tshepang Lekhonkhobe.

files:
  Doc/library/multiprocessing.rst |  5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -1114,7 +1114,7 @@
     HELLO WORLD
     [(3.515625, 39.0625), (33.0625, 4.0), (5.640625, 90.25)]
 
-.. highlight:: python
+.. highlight:: python3
 
 
 .. _multiprocessing-managers:
@@ -2256,16 +2256,19 @@
 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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list