diff options
| author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2023-05-09 22:57:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-09 22:57:39 +0100 |
| commit | 706f5f9cc83f1d62829bb18ad40bfa5e784e202c (patch) | |
| tree | 1507067d704327404f565136631771b34a447a7e /sphinx/builders | |
| parent | db546189ce1d2a345f4399367ced6ecdd538be5d (diff) | |
| download | sphinx-git-706f5f9cc83f1d62829bb18ad40bfa5e784e202c.tar.gz | |
Warn on deprecated Python-specific index types (#11412)
Diffstat (limited to 'sphinx/builders')
| -rw-r--r-- | sphinx/builders/gettext.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sphinx/builders/gettext.py b/sphinx/builders/gettext.py index 4d460109b..697b75e40 100644 --- a/sphinx/builders/gettext.py +++ b/sphinx/builders/gettext.py @@ -16,7 +16,6 @@ from docutils.nodes import Element from sphinx import addnodes, package_dir from sphinx.application import Sphinx from sphinx.builders import Builder -from sphinx.domains.python import pairindextypes from sphinx.errors import ThemeError from sphinx.locale import __ from sphinx.util import logging, split_index_msg @@ -159,10 +158,6 @@ class I18nBuilder(Builder): for node, entries in traverse_translatable_index(doctree): for typ, msg, _tid, _main, _key in entries: for m in split_index_msg(typ, msg): - if typ == 'pair' and m in pairindextypes.values(): - # avoid built-in translated message was incorporated - # in 'sphinx.util.nodes.process_index_entry' - continue catalog.add(m, node) |
