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

use context manager to open files #208

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bretello
Copy link

@bretello bretello commented Feb 24, 2022

By not using the context manager, the files were never closed, resulting in the following warnings:

sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='/usr/share/grc/conf.env' mode='r' encoding='UTF-8'>                                                                                             
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='/etc/grc.conf' mode='r' encoding='UTF-8'>

@bretello bretello marked this pull request as draft February 25, 2022 10:47
@bretello bretello marked this pull request as ready for review July 6, 2023 12:08
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 this pull request may close these issues.

1 participant