diff options
author | Victor Stinner <vstinner@python.org> | 2020-08-13 21:41:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-13 21:41:54 +0200 |
commit | d3ded080482beae578faa704b13534a62d066f9f (patch) | |
tree | 7ca864cdf5ebac68481f2c794725df7df2519210 /Doc/library/difflib.rst | |
parent | 20ae565bd2d79425d5567c001ed8f89848d7d907 (diff) | |
download | cpython-git-d3ded080482beae578faa704b13534a62d066f9f.tar.gz |
bpo-40204: Add :noindex: in the documentation (GH-21859)
Add :noindex: to duplicated documentation to fix "duplicate object
description" errors.
For example, fix this Sphinx 3 issue:
Doc/library/configparser.rst:1146: WARNING: duplicate object
description of configparser.ConfigParser.optionxform, other instance
in library/configparser, use :noindex: for one of them
Diffstat (limited to 'Doc/library/difflib.rst')
-rw-r--r-- | Doc/library/difflib.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst index 7a898c21b5..25e3511d01 100644 --- a/Doc/library/difflib.rst +++ b/Doc/library/difflib.rst @@ -24,6 +24,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module. .. class:: SequenceMatcher + :noindex: This is a flexible class for comparing pairs of sequences of any type, so long as the sequence elements are :term:`hashable`. The basic algorithm predates, and is a @@ -651,6 +652,7 @@ The :class:`Differ` class has this constructor: .. class:: Differ(linejunk=None, charjunk=None) + :noindex: Optional keyword parameters *linejunk* and *charjunk* are for filter functions (or ``None``): |