Skip to content
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

ResourceWarning with TTCollection #377

Closed
JCorson opened this issue Dec 13, 2019 · 1 comment · Fixed by #378
Closed

ResourceWarning with TTCollection #377

JCorson opened this issue Dec 13, 2019 · 1 comment · Fixed by #378
Assignees

Comments

@JCorson
Copy link
Contributor

JCorson commented Dec 13, 2019

I am seeing the following warnings on a project running on Appveyor:

...\lib\site-packages\kiva\fonttools\font_manager.py:724: ResourceWarning: unclosed file <_io.BufferedReader name='C:\\Windows\\Fonts\\YuGothR.ttc'>
  collection = TTCollection(six.text_type(fpath)

Python: 3.6.5
OS: Windows
Enable version: 4.8.1

@JCorson
Copy link
Contributor Author

JCorson commented Dec 13, 2019

I can submit a quick fix for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant