diff options
author | John Snow <jsnow@redhat.com> | 2021-07-20 13:33:20 -0400 |
---|---|---|
committer | Hanna Reitz <hreitz@redhat.com> | 2021-09-01 12:57:31 +0200 |
commit | 06aad78b825cc25329411b10c159f96819ce39a1 (patch) | |
tree | f865f7d70855c35dea0bdd6d2a51ba9816084d8c /plugins | |
parent | b68ce824098e4470e5c4f81065896a9ca8a45792 (diff) |
iotests: use with-statement for open() calls
Silences a new pylint warning. The dangers of *not* doing this are
somewhat unclear; I believe the file object gets garbage collected
eventually, but possibly the way in which it happens is
non-deterministic. Maybe this is a valid warning, but if there are
consequences of not doing it, I am not aware of them at present.
Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20210720173336.1876937-2-jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'plugins')
0 files changed, 0 insertions, 0 deletions