Skip to content

Commit e3165c5

Browse files
committed
MNT: fix LPy issue
1 parent eb86ed1 commit e3165c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/rcsetup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def validate_string_or_None(s):
178178
except ValueError:
179179
raise ValueError('Could not convert "%s" to string' % s)
180180

181+
181182
def validate_axisbelow(s):
182183
try:
183184
return validate_bool(s)
@@ -668,7 +669,7 @@ def validate_hatch(s):
668669
characters: ``\\ / | - + * . x o O``.
669670
670671
"""
671-
if not isinstance(s, six.text_type):
672+
if not isinstance(s, six.string_types):
672673
raise ValueError("Hatch pattern must be a string")
673674
unique_chars = set(s)
674675
unknown = (unique_chars -

0 commit comments

Comments
 (0)