8000 Use six.string_types instead of basestring. · matplotlib/matplotlib@d042e90 · GitHub
[go: up one dir, main page]

Skip to content

Commit d042e90

Browse files
committed
Use six.string_types instead of basestring.
1 parent f1ae145 commit d042e90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/texmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def __init__(self):
171171
ff = rcParams['font.family']
172172
if len(ff) == 1 and ff[0].lower() in self.font_families:
173173
self.font_family = ff[0].lower()
174-
elif isinstance(ff, basestring) and ff.lower() in self.font_families:
174+
elif isinstance(ff, six.string_types) and ff.lower() in self.font_families:
175175
self.font_family = ff.lower()
176176
else:
177177
mpl.verbose.report(

0 commit comments

Comments
 (0)
0