Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95d89fe

Browse files
authored
fix warning used by cbook.warn_deprecated() (#15302)
fix warning used by cbook.warn_deprecated()
2 parents c7a1aa0 + 4ac14da commit 95d89fe

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)