Skip to content

Commit

Permalink
Merge pull request #11229 from uranusjr/pip-deprecation-warning
Browse files Browse the repository at this point in the history
PipDeprecationWarning subclass DeprecationWarning
  • Loading branch information
sbidoul authored Jul 8, 2022
2 parents c260ecc + f1bc96a commit 11b0654
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions news/11225.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pip's deprecation warnings now suclass the built-in ``DeprecationWarning``, and
can be suppressed by running the Python interpreter with
``-W ignore::DeprecationWarning``.
2 changes: 1 addition & 1 deletion src/pip/_internal/utils/deprecation.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
DEPRECATION_MSG_PREFIX = "DEPRECATION: "


class PipDeprecationWarning(Warning):
class PipDeprecationWarning(DeprecationWarning):
pass


Expand Down

0 comments on commit 11b0654

Please sign in to comment.