diff --git a/lib/matplotlib/texmanager.py b/lib/matplotlib/texmanager.py index c7de8a9d905f..3c3cd66c1237 100644 --- a/lib/matplotlib/texmanager.py +++ b/lib/matplotlib/texmanager.py @@ -171,7 +171,7 @@ def __init__(self): ff = rcParams['font.family'] if len(ff) == 1 and ff[0].lower() in self.font_families: self.font_family = ff[0].lower() - elif isinstance(ff, basestring) and ff.lower() in self.font_families: + elif isinstance(ff, six.string_types) and ff.lower() in self.font_families: self.font_family = ff.lower() else: mpl.verbose.report(