Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c6ae93

Browse files
committed
win32InstalledFonts return value
1 parent 03b07fb commit 0c6ae93

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
matplotlib.font_manager.win32InstalledFonts return value
2+
````````````````````````````````````````````````````````
3+
4+
`matplotlib.font_manager.win32InstalledFonts` returns an empty list instead
5+
of None if no fonts are found.

lib/matplotlib/font_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def win32InstalledFonts(directory=None, fontext='ttf'):
206206
return list(items)
207207
except (OSError, MemoryError):
208208
continue
209-
return None
209+
return []
210210

211211

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

0 commit comments

Comments
 (0)