Skip to content

Remove use of (deprecated) is_string_like in mplot3d. #8535

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
Apr 26, 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
6 changes: 3 additions & 3 deletions lib/mpl_toolkits/mplot3d/axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1522,10 +1522,10 @@ def plot(self, xs, ys, *args, **kwargs):
'''
had_data = self.has_data()

# `zs` can be passed positionally or as keyword; checking with
# `_is_string_like` matches the behavior of 2D `plot` (via
# `zs` can be passed positionally or as keyword; checking whether
# args[0] is a string matches the behavior of 2D `plot` (via
# `_process_plot_var_args`).
if args and not cbook.is_string_like(args[0]):
if args and not isinstance(args[0], six.string_types):
zs = args[0]
args = args[1:]
if 'zs' in kwargs:
Expand Down