Skip to content

Commit

Permalink
Merge pull request #7094 from Nta1e/b7091
Browse files Browse the repository at this point in the history
Remove DependencyWarning warning from pip._internal
  • Loading branch information
chrahunt authored Sep 28, 2019
2 parents 0339287 + eb93a21 commit d27488d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions news/7094.trivial
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove DependencyWarning warning from pip._internal
9 changes: 1 addition & 8 deletions src/pip/_internal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit d27488d

Please sign in to comment.