diff options
| author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-06-16 21:37:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-16 21:37:46 +0100 |
| commit | 70f950cae039fa8f1890decd6b123659b15eda1d (patch) | |
| tree | 27b24ec48a69690bb52d7cd8fa23d28b2a5166a0 /sphinx/util | |
| parent | 6d23d7d15330271ce5e37e51a811ab219354e6dc (diff) | |
| download | sphinx-git-70f950cae039fa8f1890decd6b123659b15eda1d.tar.gz | |
Remove traces of Python 2 and 3.5 (#10560)
Diffstat (limited to 'sphinx/util')
| -rw-r--r-- | sphinx/util/inspect.py | 4 | ||||
| -rw-r--r-- | sphinx/util/typing.py | 5 |
2 files changed, 0 insertions, 9 deletions
diff --git a/sphinx/util/inspect.py b/sphinx/util/inspect.py index b25a75fb5..2321a95dc 100644 --- a/sphinx/util/inspect.py +++ b/sphinx/util/inspect.py @@ -28,10 +28,6 @@ else: MethodDescriptorType = type(str.join) WrapperDescriptorType = type(dict.__dict__['fromkeys']) -if False: - # For type annotation - from typing import Type # NOQA - logger = logging.getLogger(__name__) memory_address_re = re.compile(r' at 0x[0-9a-f]{8,16}(?=>)', re.IGNORECASE) diff --git a/sphinx/util/typing.py b/sphinx/util/typing.py index 8e48b184b..c070eb00c 100644 --- a/sphinx/util/typing.py +++ b/sphinx/util/typing.py @@ -30,11 +30,6 @@ try: except ImportError: UnionType = None -if False: - # For type annotation - from typing import Type # NOQA # for python3.5.1 - - # builtin classes that have incorrect __module__ INVALID_BUILTIN_CLASSES = { Struct: 'struct.Struct', # Before Python 3.9 |
