diff --git a/news/7094.trivial b/news/7094.trivial new file mode 100644 index 00000000000..eff43441e35 --- /dev/null +++ b/news/7094.trivial @@ -0,0 +1 @@ +Remove DependencyWarning warning from pip._internal diff --git a/src/pip/_internal/__init__.py b/src/pip/_internal/__init__.py index b88a97c46c8..04238e289ad 100755 --- a/src/pip/_internal/__init__.py +++ b/src/pip/_internal/__init__.py @@ -5,16 +5,9 @@ # 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)