From 409b4a7f0075613ba6458a0b82c2ec7c11acffa3 Mon Sep 17 00:00:00 2001 From: mcquin Date: Thu, 26 Oct 2017 15:38:16 -0400 Subject: [PATCH] Fix typo in isinstance --- lib/matplotlib/mlab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/mlab.py b/lib/matplotlib/mlab.py index c3bf6d8895a6..194420816175 100644 --- a/lib/matplotlib/mlab.py +++ b/lib/matplotlib/mlab.py @@ -2330,7 +2330,7 @@ def rec_append_fields(rec, names, arrs, dtypes=None): values themselves. """ if (not isinstance(names, six.string_types) and cbook.iterable(names) - and len(names) and isinstance(names[0]), six.string_types): + and len(names) and isinstance(names[0], six.string_types)): if len(names) != len(arrs): raise ValueError("number of arrays do not match number of names") else: # we have only 1 name and 1 array