removing unwanted commits from this branch

Conflicts:
  - salt/states/pip_state.py
  - tests/support/helpers.py
This commit is contained in:
Gareth J. Greenaway 2019-05-14 18:05:09 -07:00 committed by Ch3LL
parent e0b0ba8c71
commit 6c452b3f4c
No known key found for this signature in database
GPG key ID: 132B55A7C13EFA73
2 changed files with 3 additions and 6 deletions

View file

@ -66,8 +66,8 @@ if HAS_PIP is True:
ver2='18.1'):
from pip._internal.exceptions import InstallationError # pylint: disable=E0611,E0401
elif salt.utils.versions.compare(ver1=pip.__version__,
oper='>=',
ver2='1.0'):
oper='>=',
ver2='1.0'):
from pip.exceptions import InstallationError # pylint: disable=E0610,E0401
else:
InstallationError = ValueError

View file

@ -209,10 +209,7 @@ def flaky(caller=None, condition=True, attempts=4):
return caller(cls)
except Exception as exc:
if attempt >= attempts -1:
if six.PY2:
raise
else:
raise exc
raise exc
backoff_time = attempt ** 2
log.info(
'Found Exception. Waiting %s seconds to retry.',