Fixed #1756: Incorrect section titles in search that was introduced from 1.3b3 (PR #1694)

This commit is contained in:
shimizukawa 2015-03-09 21:37:39 +09:00
parent 7e9cd93267
commit dee83b8f52
2 changed files with 2 additions and 2 deletions

View File

@ -37,6 +37,7 @@ Bugs fixed
* #1700: Add ``:caption:`` option for :rst:dir:`toctree`.
* #1742: ``:name:`` option is provided for :rst:dir:`toctree`, :rst:dir:`code-block` and
:rst:dir:`literalinclude` dirctives.
* #1756: Incorrect section titles in search that was introduced from 1.3b3.
Release 1.3b3 (released Feb 24, 2015)

View File

@ -318,8 +318,7 @@ class IndexBuilder(object):
def freeze(self):
"""Create a usable data structure for serializing."""
filenames = sorted(self._titles.keys())
titles = sorted(self._titles.values())
filenames, titles = zip(*sorted(self._titles.items()))
fn2index = dict((f, i) for (i, f) in enumerate(filenames))
terms, title_terms = self.get_terms(fn2index)