Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1652994

Browse filesBrowse files
story645meeseeksmachine
authored andcommitted
Backport PR #16379: FIX: catch on message content, not module
1 parent d0cdf97 commit 1652994
Copy full SHA for 1652994

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed

‎lib/matplotlib/cbook/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/cbook/__init__.py
+4-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.