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

Skip to content

Commit d7af676

Browse files
authored
Merge pull request #10409 from anntzer/remove-unused-private
Remove unused _is_list_like. Move six import up.
2 parents 56604c9 + 9a4025d commit d7af676

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/matplotlib/testing/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
from __future__ import (absolute_import, division, print_function,
22
unicode_literals)
33

4+
import six
5+
46
import functools
57
import warnings
68

7-
import six
89
import matplotlib as mpl
910
from matplotlib import cbook
1011

1112

12-
def _is_list_like(obj):
13-
"""Returns whether the obj is iterable and not a string"""
14-
return not isinstance(obj, six.string_types) and cbook.iterable(obj)
15-
16-
1713
def is_called_from_pytest():
1814
"""Returns whether the call was done from pytest"""
1915
return getattr(mpl, '_called_from_pytest', False)

0 commit comments

Comments
 (0)