diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-14 21:14:11 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-15 17:57:43 +0300 |
commit | 6bc357140dbb074eb0d590c1226009f83f97862e (patch) | |
tree | a7c8d2087ee1f50dadb5ca78343ac10c6959b740 /sphinx/environment/collectors/indexentries.py | |
parent | 0031c9b4822ae9684888ae90bc70d6ceb3313581 (diff) |
Replace all "unicode" type by "str"
Diffstat (limited to 'sphinx/environment/collectors/indexentries.py')
-rw-r--r-- | sphinx/environment/collectors/indexentries.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/environment/collectors/indexentries.py b/sphinx/environment/collectors/indexentries.py index 662965c67..45f2c6742 100644 --- a/sphinx/environment/collectors/indexentries.py +++ b/sphinx/environment/collectors/indexentries.py @@ -21,7 +21,6 @@ if False: from docutils import nodes # NOQA from sphinx.applicatin import Sphinx # NOQA from sphinx.environment import BuildEnvironment # NOQA - from sphinx.util.typing import unicode # NOQA logger = logging.getLogger(__name__) @@ -30,11 +29,11 @@ class IndexEntriesCollector(EnvironmentCollector): name = 'indices' def clear_doc(self, app, env, docname): - # type: (Sphinx, BuildEnvironment, unicode) -> None + # type: (Sphinx, BuildEnvironment, str) -> None env.indexentries.pop(docname, None) def merge_other(self, app, env, docnames, other): - # type: (Sphinx, BuildEnvironment, Set[unicode], BuildEnvironment) -> None + # type: (Sphinx, BuildEnvironment, Set[str], BuildEnvironment) -> None for docname in docnames: env.indexentries[docname] = other.indexentries[docname] |