mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Remove duplicated code.
This check exists twice in the code. Once is good enough for anyone.
This commit is contained in:
parent
d99b8b6d87
commit
cf20f48c6a
@ -57,13 +57,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
|
||||
|
Loading…
Reference in New Issue
Block a user