summaryrefslogtreecommitdiff
path: root/sphinx/domains/python.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-03-29 19:36:41 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-03-29 19:37:21 +0900
commitfe9473f42e71db5fca3281ecd09f0a39f5683385 (patch)
tree75df1e16faa935738bc293085d52d748b24727fe /sphinx/domains/python.py
parentce25d0080ea6090bf14857049516e91419a64ace (diff)
downloadsphinx-git-fe9473f42e71db5fca3281ecd09f0a39f5683385.tar.gz
Fix #7219: py:module directive generates incorrect index entry
Diffstat (limited to 'sphinx/domains/python.py')
-rw-r--r--sphinx/domains/python.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py
index eb8af45f9..64a19fc48 100644
--- a/sphinx/domains/python.py
+++ b/sphinx/domains/python.py
@@ -926,8 +926,8 @@ class PyModule(SphinxDirective):
# the platform and synopsis aren't printed; in fact, they are only
# used in the modindex currently
ret.append(target)
- indextext = _('%s (module)') % modname
- inode = addnodes.index(entries=[('single', indextext, node_id, '', None)])
+ indextext = '%s; %s' % (pairindextypes['module'], modname)
+ inode = addnodes.index(entries=[('pair', indextext, node_id, '', None)])
ret.append(inode)
return ret