Georg Brandl ge...@python.org added the comment:
Ezio: That's a bug in Sphinx; even when the language is selected explicitly
as python, it will try to parse the code. It is fixed in a later Sphinx
version.
--
nosy: +georg.brandl
___
Python tracker
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14535
___
___
Tshepang Lekhonkhobe tshep...@gmail.com added the comment:
This is probably because Sphinx can't detect that those are Python sources, so
my patch forces it to recognize it as such.
--
keywords: +patch
Added file: http://bugs.python.org/file25204/highlight-code.diff
Éric Araujo mer...@netwok.org added the comment:
LGTM
--
nosy: +eric.araujo
stage: - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14535
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 635966f6d3de by Ezio Melotti in branch '3.2':
#14535: fix code highlight in multiprocessing examples. Patch by Tshepang
Lekhonkhobe.
http://hg.python.org/cpython/rev/635966f6d3de
New changeset 957e2c71beef by Ezio
Ezio Melotti ezio.melo...@gmail.com added the comment:
I tried the attached patch but it didn't work for me. Using python3 instead
of python seemed to fix the problem. I also updated another python to use
python3. Thanks for the report and the patch!
--
assignee: docs@python -
New submission from Ramchandra Apte maniandra...@gmail.com:
Three code examples in
http://docs.python.org/py3k/library/multiprocessing.html#examples are not
syntax highlighted.
--
assignee: docs@python
components: Documentation
messages: 157845
nosy: docs@python, ramchandra.apte