mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove duplicated code.
This check exists twice in the code. Once is good enough for anyone.
This commit is contained in:
parent
946d27e82a
commit
291a3e21fa
1 changed files with 0 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue