Skip to content

Backport PR #9589 on branch v2.1.x #9596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 27, 2017
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
Backport PR #9589: Fix typo in isinstance
  • Loading branch information
anntzer authored and MeeseeksDev[bot] committed Oct 27, 2017
commit f194cb9fdc1ff0afa997dacee2c02c342dc83c7a
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