diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2020-01-28 09:49:29 +0100 |
---|---|---|
committer | Pavel Moravec <pmoravec@redhat.com> | 2020-01-28 09:52:39 +0100 |
commit | f867f783d333679ad871c77b473bd4e6a258ab4a (patch) | |
tree | 6fd57bcb52f14844262b4f1c8efdddcf97abd389 /.github/PULL_REQUEST_TEMPLATE.md | |
parent | f6645b43e6f46611696049cc28481d2522cfe259 (diff) | |
parent | a5828cc806cc8a5b89aaac808ed1e8c7a60fa941 (diff) | |
download | sos-f867f783d333679ad871c77b473bd4e6a258ab4a.tar.gz |
[Policy] Wrap json.load() in with clause
Wraps `json.load()` from preset loading in a `with` statement to ensure
that file objects are properly closed.
Closes: #1322
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
Diffstat (limited to '.github/PULL_REQUEST_TEMPLATE.md')
0 files changed, 0 insertions, 0 deletions