Skip to content

Commit a890a78

Browse files
author
Jussi Kukkonen
committed
Add pylint disable for file object handling
We return the file object so cannot use a context manager to close it. Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
1 parent d0438e3 commit a890a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tuf/client_rework/download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def download_file(url, required_length, fetcher, strict_required_length=True):
9090

9191
# This is the temporary file that we will return to contain the contents of
9292
# the downloaded file.
93-
temp_file = tempfile.TemporaryFile()
93+
temp_file = tempfile.TemporaryFile() # pylint: disable=consider-using-with
9494

9595
average_download_speed = 0
9696
number_of_bytes_received = 0

0 commit comments

Comments
 (0)