Skip to content

use context manager to open files#208

Open
bretello wants to merge 1 commit intogarabik:masterfrom
bretello:master
Open

use context manager to open files#208
bretello wants to merge 1 commit intogarabik:masterfrom
bretello:master

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