]> www.infradead.org Git - users/hch/nvmetcli.git/commit
nvme.py: Explicit close is redundant
authorTony Asleson <tasleson@redhat.com>
Thu, 26 Mar 2020 18:07:46 +0000 (13:07 -0500)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Apr 2020 09:00:14 +0000 (11:00 +0200)
commit226b73a4ae317c6aa3c7b00da2adbd1ec769ce34
tree2aae2f55c264f5397f41e54bce6799792733aa83
parent48b8f318e0594d7adfec290ae47d9308eb0f65af
nvme.py: Explicit close is redundant

One of the benefits of using 'with' statement for open files is the
close is going to be called regardless of what happens.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
nvmet/nvme.py