8000 Backport PR #16379: FIX: catch on message content, not module · QuLogic/matplotlib@1652994 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1652994

Browse files
story645meeseeksmachine
authored andcommitted
Backport PR matplotlib#16379: FIX: catch on message content, not module
1 parent d0cdf97 commit 1652994

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/matplotlib/cbook/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,9 +2081,10 @@ def _check_1d(x):
20812081
# This code should correctly identify and coerce to a
20822082
# numpy array all pandas versions.
20832083
with warnings.catch_warnings(record=True) as w:
2084-
warnings.filterwarnings("always",
2085-
category=DeprecationWarning,
2086-
module='pandas[.*]')
2084+
warnings.filterwarnings(
2085+
"always",
2086+
category=DeprecationWarning,
2087+
message='Support for multi-dimensional indexing')
20872088

20882089
ndim = x[:, None].ndim
20892090
# we have definitely hit a pandas index or series object

0 commit comments

Comments
 (0)
0