From fea52b54ee407ebee3fc591c0ce4418bcd26d5d4 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Thu, 15 Oct 2020 11:23:59 +0100 Subject: [PATCH] Remove use of single letter variable A single letter variable name of 'f' causes pylint to throw a coding style convention warning: C0103: Variable name "f" doesn't conform to snake_case naming style (invalid-name) Signed-off-by: Joshua Lock --- tuf/api/metadata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tuf/api/metadata.py b/tuf/api/metadata.py index be2f4ddb..0fb91e08 100644 --- a/tuf/api/metadata.py +++ b/tuf/api/metadata.py @@ -179,9 +179,9 @@ def to_json_file( The file cannot be written. """ - with tempfile.TemporaryFile() as f: - f.write(self.to_json(compact).encode('utf-8')) - persist_temp_file(f, filename, storage_backend) + with tempfile.TemporaryFile() as temp_file: + temp_file.write(self.to_json(compact).encode('utf-8')) + persist_temp_file(temp_file, filename, storage_backend) # Signatures.