mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Docs: Fix duplicate object description warnings (#122068)
This commit is contained in:
parent
a09e215abf
commit
8db5f48007
@ -7,6 +7,7 @@
|
||||
:synopsis: The base class representing email messages in a fashion
|
||||
backward compatible with Python 3.2
|
||||
:noindex:
|
||||
:no-index:
|
||||
|
||||
|
||||
The :class:`Message` class is very similar to the
|
||||
|
@ -874,6 +874,7 @@ Element Objects
|
||||
|
||||
.. module:: xml.etree.ElementTree
|
||||
:noindex:
|
||||
:no-index:
|
||||
|
||||
.. class:: Element(tag, attrib={}, **extra)
|
||||
|
||||
|
@ -18,11 +18,12 @@ from pprint import pformat
|
||||
import sphinx
|
||||
from docutils import nodes
|
||||
from docutils.io import StringOutput
|
||||
from docutils.parsers.rst import directives
|
||||
from docutils.utils import new_document, unescape
|
||||
from sphinx import addnodes
|
||||
from sphinx.builders import Builder
|
||||
from sphinx.domains.changeset import VersionChange, versionlabels, versionlabel_classes
|
||||
from sphinx.domains.python import PyFunction, PyMethod
|
||||
from sphinx.domains.python import PyFunction, PyMethod, PyModule
|
||||
from sphinx.errors import NoUri
|
||||
from sphinx.locale import _ as sphinx_gettext
|
||||
from sphinx.util import logging
|
||||
@ -49,6 +50,9 @@ from sphinx.domains import std
|
||||
|
||||
std.token_re = re.compile(r'`((~?[\w-]*:)?\w+)`')
|
||||
|
||||
# backport :no-index:
|
||||
PyModule.option_spec['no-index'] = directives.flag
|
||||
|
||||
|
||||
# Support for marking up and linking to bugs.python.org issues
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user