diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-03-21 02:21:59 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-03-21 02:21:59 +0900 |
commit | 86f0336693df45acdc2e968322bd794171e45eef (patch) | |
tree | 0faf30c4ce4e1c3a1acf3ad3d814848a4592110f /sphinx/util/compat.py | |
parent | e6cc18cc59e54a26d25c7ec54354b3dfa646c07b (diff) | |
parent | b96a315b5f80c7127b5fad7c6c25ce3a1056ad48 (diff) | |
download | sphinx-git-86f0336693df45acdc2e968322bd794171e45eef.tar.gz |
Merge branch '2.0'
Diffstat (limited to 'sphinx/util/compat.py')
-rw-r--r-- | sphinx/util/compat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/compat.py b/sphinx/util/compat.py index 1567bad9e..5d8cbb3db 100644 --- a/sphinx/util/compat.py +++ b/sphinx/util/compat.py @@ -58,12 +58,12 @@ class IndexEntriesMigrator(SphinxTransform): def apply(self, **kwargs): # type: (Any) -> None for node in self.document.traverse(addnodes.index): - for entries in node['entries']: + for i, entries in enumerate(node['entries']): if len(entries) == 4: source, line = get_source_line(node) warnings.warn('An old styled index node found: %r at (%s:%s)' % (node, source, line), RemovedInSphinx40Warning) - entries.extend([None]) + node['entries'][i] = entries + (None,) def setup(app): |