commit | 33d7a761e53c7828ab89821fd7f7b5c6ada81635 | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Fri Dec 21 21:43:30 2018 +0100 |
committer | Petr Lautrbach <plautrba@redhat.com> | Mon Jan 07 12:50:45 2019 +0100 |
tree | 6554e51bd974c735710a28ae8de82914a2c4042f | |
parent | 9ac345e8d5b1f661b1012380d648d73d933e503a [diff] |
python/sepolgen: close /etc/selinux/sepolgen.conf after parsing it sepolgen testsuite reports the following warning on a system with /etc/selinux/sepolgen.conf: .../src/./sepolgen/defaults.py:35: ResourceWarning: unclosed file <_io.TextIOWrapper name='/etc/selinux/sepolgen.conf' mode='r' encoding='UTF-8'> Fix this by properly closing the file in PathChooser.__init__(). Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>