Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
chrahunt committed Nov 16, 2019
1 parent 697f38f commit 28d1ff7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
3 changes: 1 addition & 2 deletions src/pip/_internal/pep425tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
from pip._vendor.six import PY2

import pip._internal.utils.glibc
from pip._internal.utils.compat import get_extension_suffixes
from pip._internal.utils.typing import MYPY_CHECK_RUNNING

if MYPY_CHECK_RUNNING:
from typing import (
Tuple, Callable, List, Optional, Union, Dict, Set
Tuple, Callable, List, Optional, Union, Dict
)

Pep425Tag = Tuple[str, str, str]
Expand Down
14 changes: 0 additions & 14 deletions src/pip/_internal/utils/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
__all__ = [
"ipaddress", "uses_pycache", "console_to_str",
"get_path_uid", "stdlib_pkgs", "WINDOWS", "samefile", "get_terminal_size",
"get_extension_suffixes",
]


Expand Down Expand Up @@ -189,19 +188,6 @@ def get_path_uid(path):
return file_uid


if PY2:
from imp import get_suffixes

def get_extension_suffixes():
return [suffix[0] for suffix in get_suffixes()]

else:
from importlib.machinery import EXTENSION_SUFFIXES

def get_extension_suffixes():
return EXTENSION_SUFFIXES


def expanduser(path):
# type: (str) -> str
"""
Expand Down

0 comments on commit 28d1ff7

Please sign in to comment.