-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Pathlibify font_manager (only internally, doesn't change the API). #10435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Everything is failing... |
0c30ccc
to
18ff095
Compare
should hopefully work better now... |
cc2a1a4
to
8616d51
Compare
lib/matplotlib/font_manager.py
Outdated
return [str(path) | ||
for ext in extensions | ||
for path in filter(Path.is_file, | ||
Path(directory).rglob("*.{}".format(ext)))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This walks the directory tree as many times as there are extensions instead of just once.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
8616d51
to
0faaded
Compare
0faaded
to
5cad00a
Compare
a5b164c
to
0e2c60e
Compare
0e2c60e
to
898998c
Compare
PR Summary
EDIT: also rely on winreg context-managing, https://docs.python.org/3.4/library/winreg.html#registry-handle-objects
PR Checklist