diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-16 00:32:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-16 00:32:10 +0900 |
commit | c70e65fc6cd04d02df4f7911025f534dbd27cc20 (patch) | |
tree | 1e8614ac5516dace99ef1df4d203081662c7c2d6 /sphinx/util/typing.py | |
parent | d6d4406ce987cc8823d1b3a33be3a418bcd2a59d (diff) | |
parent | 79eec90f36f5a74e24cfd6740126396fd6567e07 (diff) | |
download | sphinx-git-c70e65fc6cd04d02df4f7911025f534dbd27cc20.tar.gz |
Merge branch 'master' into 5770_doctest_refers_highlight_language
Diffstat (limited to 'sphinx/util/typing.py')
-rw-r--r-- | sphinx/util/typing.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sphinx/util/typing.py b/sphinx/util/typing.py index 72ef77742..12b7a2642 100644 --- a/sphinx/util/typing.py +++ b/sphinx/util/typing.py @@ -13,16 +13,9 @@ from typing import Any, Callable, Dict, List, Tuple, Union from docutils import nodes from docutils.parsers.rst.states import Inliner -from six import PY2, text_type +from six import text_type -# a typedef for unicode to make migration to mypy-py3 mode easy -# Note: It will be removed after migrated (soon). -if PY2: - unicode = text_type -else: - unicode = str - # An entry of Directive.option_spec DirectiveOption = Callable[[str], Any] |