summaryrefslogtreecommitdiff
path: root/sphinx/util/console.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-16 00:32:10 +0900
committerGitHub <noreply@github.com>2018-12-16 00:32:10 +0900
commitc70e65fc6cd04d02df4f7911025f534dbd27cc20 (patch)
tree1e8614ac5516dace99ef1df4d203081662c7c2d6 /sphinx/util/console.py
parentd6d4406ce987cc8823d1b3a33be3a418bcd2a59d (diff)
parent79eec90f36f5a74e24cfd6740126396fd6567e07 (diff)
downloadsphinx-git-c70e65fc6cd04d02df4f7911025f534dbd27cc20.tar.gz
Merge branch 'master' into 5770_doctest_refers_highlight_language
Diffstat (limited to 'sphinx/util/console.py')
-rw-r--r--sphinx/util/console.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/util/console.py b/sphinx/util/console.py
index 2ce2bda76..a194441f1 100644
--- a/sphinx/util/console.py
+++ b/sphinx/util/console.py
@@ -22,7 +22,6 @@ except ImportError:
if False:
# For type annotation
from typing import Dict # NOQA
- from sphinx.util.typing import unicode # NOQA
_ansi_re = re.compile('\x1b\\[(\\d\\d;){0,2}\\d\\dm')
@@ -89,7 +88,7 @@ def coloron():
def colorize(name, text, input_mode=False):
- # type: (str, unicode, bool) -> unicode
+ # type: (str, str, bool) -> str
def escseq(name):
# Wrap escape sequence with ``\1`` and ``\2`` to let readline know
# it is non-printable characters
@@ -113,7 +112,7 @@ def strip_colors(s):
def create_color_func(name):
# type: (str) -> None
def inner(text):
- # type: (unicode) -> unicode
+ # type: (str) -> str
return colorize(name, text)
globals()[name] = inner