8000 Merge pull request #2439 from alefnula/remove-basestring · matplotlib/matplotlib@7af7678 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7af7678

Browse files
committed
Merge pull request #2439 from alefnula/remove-basestring
Use six.string_types instead of basestring.
2 parents f1ae145 + d042e90 commit 7af7678

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