Remove duplicated code.

This check exists twice in the code. Once is good enough for anyone.
This commit is contained in:
Byron Clark 2016-02-08 16:30:10 -07:00 committed by Wolodja Wentland
parent 946d27e82a
commit 291a3e21fa

View file

@ -58,13 +58,6 @@ if HAS_PIP is True:
# pylint: enable=import-error
ver = pip.__version__.split('.')
pip_ver = tuple([int(x) for x in ver if x.isdigit()])
if pip_ver >= (8, 0, 0):
from pip.exceptions import InstallationError
else:
InstallationError = ValueError
logger = logging.getLogger(__name__)
# Define the module's virtual name