Skip to content

Commit 2891f55

Browse files
committed
FIX: maintain return type stability in win32InstalledFonts
closes #12173
1 parent ef04ad9 commit 2891f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/font_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def win32InstalledFonts(directory=None, fontext='ttf'):
207207
return list(items)
208208
except (OSError, MemoryError):
209209
continue
210-
return None
210+
return []
211211

212212

213213
def OSXInstalledFonts(directories=None, fontext='ttf'):

0 commit comments

Comments
 (0)