8000 fix warning used by cbook.warn_deprecated() · matplotlib/matplotlib@4ac14da · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ac14da

Browse files
committed
fix warning used by cbook.warn_deprecated()
change warning class from UserWarning to MatplotlibDeprecationWarning closes #15289
1 parent eb9b0d5 commit 4ac14da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cbook/deprecation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def warn_deprecated(
108108
since, message, name, alternative, pending, obj_type, addendum,
109109
removal=removal)
110110
from . import _warn_external
111-
_warn_external(warning)
111+
_warn_external(warning, category=MatplotlibDeprecationWarning)
112112

113113

114114
def deprecated(since, *, message='', name='', alternative='', pending=False,

0 commit comments

Comments
 (0)
0