From f194cb9fdc1ff0afa997dacee2c02c342dc83c7a Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Thu, 26 Oct 2017 22:41:21 -0700 Subject: [PATCH] Backport PR #9589: 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