aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2021-07-20 13:33:20 -0400
committerHanna Reitz <hreitz@redhat.com>2021-09-01 12:57:31 +0200
commit06aad78b825cc25329411b10c159f96819ce39a1 (patch)
treef865f7d70855c35dea0bdd6d2a51ba9816084d8c /plugins
parentb68ce824098e4470e5c4f81065896a9ca8a45792 (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