mirror of https://github.com/pypa/pip
Merge pull request #7094 from Nta1e/b7091
Remove DependencyWarning warning from pip._internal
This commit is contained in:
commit
d27488d288
|
@ -0,0 +1 @@
|
|||
Remove DependencyWarning warning from pip._internal
|
|
@ -5,16 +5,9 @@ import warnings
|
|||
|
||||
# We ignore certain warnings from urllib3, since they are not relevant to pip's
|
||||
# usecases.
|
||||
from pip._vendor.urllib3.exceptions import (
|
||||
DependencyWarning,
|
||||
InsecureRequestWarning,
|
||||
)
|
||||
from pip._vendor.urllib3.exceptions import InsecureRequestWarning
|
||||
|
||||
import pip._internal.utils.inject_securetransport # noqa
|
||||
|
||||
# Raised when using --trusted-host.
|
||||
warnings.filterwarnings("ignore", category=InsecureRequestWarning)
|
||||
# Raised since socks support depends on PySocks, which may not be installed.
|
||||
# Barry Warsaw noted (on 2016-06-17) that this should be done before
|
||||
# importing pip.vcs, which has since moved to pip._internal.vcs.
|
||||
warnings.filterwarnings("ignore", category=DependencyWarning)
|
||||
|
|
Loading…
Reference in New Issue