Merge pull request #7094 from Nta1e/b7091

Remove DependencyWarning warning from pip._internal
This commit is contained in:
Christopher Hunt 2019-09-28 09:16:24 -04:00 committed by GitHub
commit d27488d288
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

1
news/7094.trivial Normal file
View File

@ -0,0 +1 @@
Remove DependencyWarning warning from pip._internal

View File

@ -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)