Skip to content

Commit

Permalink
Remove unused version functions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrahunt committed Jan 7, 2020
1 parent 3c9ee1e commit 5e67b3b
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/pip/_internal/pep425tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import logging
import re
import sys

from pip._vendor.packaging.tags import (
Tag,
Expand Down Expand Up @@ -33,30 +32,6 @@ def version_info_to_nodot(version_info):
return ''.join(map(str, version_info[:2]))


def get_impl_version_info():
# type: () -> Tuple[int, ...]
"""Return sys.version_info-like tuple for use in decrementing the minor
version."""
if interpreter_name() == 'pp':
# as per https://github.com/pypa/pip/issues/2882
# attrs exist only on pypy
return (sys.version_info[0],
sys.pypy_version_info.major, # type: ignore
sys.pypy_version_info.minor) # type: ignore
else:
return sys.version_info[0], sys.version_info[1]


def get_all_minor_versions_as_strings(version_info):
# type: (Tuple[int, ...]) -> List[str]
versions = []
major = version_info[:-1]
# Support all previous minor Python versions.
for minor in range(version_info[-1], -1, -1):
versions.append(''.join(map(str, major + (minor,))))
return versions


def _mac_platforms(arch):
# type: (str) -> List[str]
match = _osx_arch_pat.match(arch)
Expand Down

0 comments on commit 5e67b3b

Please sign in to comment.