Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 409b4a7

Browse files
author
mcquin
committed
Fix typo in isinstance
1 parent 3c3e8ba commit 409b4a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/mlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2330,7 +2330,7 @@ def rec_append_fields(rec, names, arrs, dtypes=None):
23302330
values themselves.
23312331
"""
23322332
if (not isinstance(names, six.string_types) and cbook.iterable(names)
2333-
and len(names) and isinstance(names[0]), six.string_types):
2333+
and len(names) and isinstance(names[0], six.string_types)):
23342334
if len(names) != len(arrs):
23352335
raise ValueError("number of arrays do not match number of names")
23362336
else: # we have only 1 name and 1 array

0 commit comments

Comments
 (0)