From b0ecb709b5f684e6a7841b6ea7b3db3afc36abdb Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Tue, 25 Apr 2017 19:13:08 -0700 Subject: [PATCH] Remove use of is_string_like in mplot3d. --- lib/mpl_toolkits/mplot3d/axes3d.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mpl_toolkits/mplot3d/axes3d.py b/lib/mpl_toolkits/mplot3d/axes3d.py index a4069eb80ad6..73670692055b 100644 --- a/lib/mpl_toolkits/mplot3d/axes3d.py +++ b/lib/mpl_toolkits/mplot3d/axes3d.py @@ -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: