Closed joshas closed 3 years ago
While testing with all warnings enabled, I noticed "ResourceWarning: unclosed file" warnings when config files were loaded. This commit fixes this issue.
What does this fix?
Use context manager to ensure file is closed immediately after read.
It seems am in a need of an vacation. Thank you for this PR. Much appreciated.
While testing with all warnings enabled, I noticed "ResourceWarning: unclosed file" warnings when config files were loaded. This commit fixes this issue.