This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Wrongly formatted doctest block in difflib documentation
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.6, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: berker.peksag, docs@python, mitya57, python-dev
Priority: normal Keywords: patch

Created on 2016-03-11 18:20 by mitya57, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
doctest.diff mitya57, 2016-03-11 18:20 Fix for doctest block in difflib.rst review
Messages (3)
msg261591 - (view) Author: Dmitry Shachnev (mitya57) * Date: 2016-03-11 18:20
Look at the documentation of difflib.SequenceMatcher.get_opcodes:
https://docs.python.org/dev/library/difflib.html#difflib.SequenceMatcher.get_opcodes

There, the result part of the example is rendered as plain reStructuredText, separately from the code block itself.
The attached patch fixes it.
msg261603 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-03-11 21:19
New changeset ffd0603f5251 by Berker Peksag in branch '3.5':
Issue #26542: Fix markup of code example in difflib documentation
https://hg.python.org/cpython/rev/ffd0603f5251

New changeset 40d92c92eb6e by Berker Peksag in branch 'default':
Issue #26542: Fix markup of code example in difflib documentation
https://hg.python.org/cpython/rev/40d92c92eb6e
msg261604 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016-03-11 21:20
Good catch, Dmitry. Thanks for the patch!
History
Date User Action Args
2022-04-11 14:58:28adminsetgithub: 70729
2016-03-11 21:20:29berker.peksagsetstatus: open -> closed

nosy: + berker.peksag
messages: + msg261604

resolution: fixed
stage: resolved
2016-03-11 21:19:37python-devsetnosy: + python-dev
messages: + msg261603
2016-03-11 18:20:27mitya57create