diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-10-20 23:53:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-20 23:53:33 -0700 |
commit | 58beeed235e5dddc7b040db03daa1a7fcc178d23 (patch) | |
tree | 80f2dfdaefcafed6b12e9fda4e2951c44b969886 /sphinx/cmd/quickstart.py | |
parent | a4b7927a29cb0b38c00c7e83c2130cb426105bfa (diff) | |
download | sphinx-git-58beeed235e5dddc7b040db03daa1a7fcc178d23.tar.gz |
fixup
Warning and missing typing function
Diffstat (limited to 'sphinx/cmd/quickstart.py')
-rw-r--r-- | sphinx/cmd/quickstart.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py index af0333d65..ea28f4bd3 100644 --- a/sphinx/cmd/quickstart.py +++ b/sphinx/cmd/quickstart.py @@ -44,7 +44,7 @@ from sphinx.util import texescape if False: # For type annotation - from typing import Any, Callable, Dict, List, Pattern # NOQA + from typing import Any, Callable, Dict, List, Pattern, Union # NOQA TERM_ENCODING = getattr(sys.stdin, 'encoding', None) @@ -149,7 +149,7 @@ def term_decode(text): # If ascii is safe, use it with no warning if text.decode('ascii', 'replace').encode('ascii', 'replace') == text: return text.decode('ascii') - + print(turquoise('* Note: non-ASCII characters entered ' 'and terminal encoding unknown -- assuming ' 'UTF-8 or Latin-1.')) |