diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-07 10:45:39 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-07 19:36:41 +0900 |
commit | 6d4fefebf4ecee4416da016d8e647298003fb57a (patch) | |
tree | a0f8dedd36b9562a248bcf8bc8eab91d09136a58 /sphinx/util/osutil.py | |
parent | 3e0618ba3a84c7db51813cab43779d11c5fe7802 (diff) | |
download | sphinx-git-6d4fefebf4ecee4416da016d8e647298003fb57a.tar.gz |
Deprecate codes for python 3.5
Diffstat (limited to 'sphinx/util/osutil.py')
-rw-r--r-- | sphinx/util/osutil.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py index e44211cf9..c070abe34 100644 --- a/sphinx/util/osutil.py +++ b/sphinx/util/osutil.py @@ -18,7 +18,7 @@ import sys import warnings from io import StringIO from os import path -from typing import Any, Generator, Iterator, List, Tuple +from typing import Any, Generator, Iterator, List, Tuple, Type from sphinx.deprecation import RemovedInSphinx40Warning @@ -28,10 +28,6 @@ try: except ImportError: Path = None # type: ignore -if False: - # For type annotation - from typing import Type # for python3.5.1 - # Errnos that we need. EEXIST = getattr(errno, 'EEXIST', 0) # RemovedInSphinx40Warning ENOENT = getattr(errno, 'ENOENT', 0) # RemovedInSphinx40Warning |