10000 Backport PR #12686: Remove deprecation warnings in tests · matplotlib/matplotlib@987dbd6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 987dbd6

Browse files
dstansbyMeeseeksDev[bot]
authored andcommitted
Backport PR #12686: Remove deprecation warnings in tests
1 parent bfeb569 commit 987dbd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import collections
1+
import collections.abc
22
import functools
33
import itertools
44
import logging
@@ -4191,7 +4191,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
41914191
if (c_none or
41924192
co is not None or
41934193
isinstance(c, str) or
4194-
(isinstance(c, collections.Iterable) and
4194+
(isinstance(c, collections.abc.Iterable) and
41954195
isinstance(c[0], str))):
41964196
c_array = None
41974197
else:

0 commit comments

Comments
 (0)
0