From 15d381cd3f4a0bacd03f11171e3b03d401e07198 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Wed, 31 Oct 2018 20:20:26 +0100 Subject: [PATCH] Remove deprecation warnings in tests --- lib/matplotlib/axes/_axes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 0d79ea223d20..fc9619de76f2 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -1,4 +1,4 @@ -import collections +import collections.abc import functools import itertools import logging @@ -4187,7 +4187,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None, if (c_none or co is not None or isinstance(c, str) or - (isinstance(c, collections.Iterable) and + (isinstance(c, collections.abc.Iterable) and isinstance(c[0], str))): c_array = None else: