grc
grc copied to clipboard
use context manager to open files
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'>