Skip to content

Commit ae0bb06

Browse files
committed
Remove unused code
1 parent cec1262 commit ae0bb06

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

src/pip/_internal/pep425tags.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@
1313
from pip._vendor.six import PY2
1414

1515
import pip._internal.utils.glibc
16-
from pip._internal.utils.compat import get_extension_suffixes
1716
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
1817

1918
if MYPY_CHECK_RUNNING:
2019
from typing import (
21-
Tuple, Callable, List, Optional, Union, Dict, Set
20+
Tuple, Callable, List, Optional, Union, Dict
2221
)
2322

2423
Pep425Tag = Tuple[str, str, str]

src/pip/_internal/utils/compat.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
__all__ = [
4444
"ipaddress", "uses_pycache", "console_to_str",
4545
"get_path_uid", "stdlib_pkgs", "WINDOWS", "samefile", "get_terminal_size",
46-
"get_extension_suffixes",
4746
]
4847

4948

@@ -189,19 +188,6 @@ def get_path_uid(path):
189188
return file_uid
190189

191190

192-
if PY2:
193-
from imp import get_suffixes
194-
195-
def get_extension_suffixes():
196-
return [suffix[0] for suffix in get_suffixes()]
197-
198-
else:
199-
from importlib.machinery import EXTENSION_SUFFIXES
200-
201-
def get_extension_suffixes():
202-
return EXTENSION_SUFFIXES
203-
204-
205191
def expanduser(path):
206192
# type: (str) -> str
207193
"""

0 commit comments

Comments
 (0)