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

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix typo in isinstance
  • Loading branch information
mcquin committed Oct 26, 2017
commit 409b4a7f0075613ba6458a0b82c2ec7c11acffa3
2 changes: 1 addition & 1 deletion lib/matplotlib/mlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down