We no longer need to warn about 2.6

This commit is contained in:
Donald Stufft 2017-03-18 13:42:37 -04:00
parent 23b03de81a
commit e341417e62
2 changed files with 1 additions and 14 deletions

View File

@ -6,7 +6,6 @@ import logging.config
import os
import sys
import optparse
import warnings
from pip import cmdoptions
from pip.index import PackageFinder
@ -21,7 +20,7 @@ from pip.status_codes import (
SUCCESS, ERROR, UNKNOWN_ERROR, VIRTUALENV_NOT_FOUND,
PREVIOUS_BUILD_DIR_ERROR,
)
from pip.utils import deprecation, get_prog, normalize_path
from pip.utils import get_prog, normalize_path
from pip.utils.logging import IndentingFormatter
from pip.utils.outdated import pip_version_check
@ -186,14 +185,6 @@ class Command(object):
),
})
if sys.version_info[:2] == (2, 6):
warnings.warn(
"Python 2.6 is no longer supported by the Python core team, "
"please upgrade your Python. A future version of pip will "
"drop support for Python 2.6",
deprecation.Python26DeprecationWarning
)
# TODO: try to get these passing down from the command?
# without resorting to os.environ to hold these.

View File

@ -23,10 +23,6 @@ class RemovedInPip11Warning(PipDeprecationWarning, Pending):
pass
class Python26DeprecationWarning(PipDeprecationWarning):
pass
# Warnings <-> Logging Integration