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 <jlock@vmware.com>
This commit is contained in:
Joshua Lock 2020-10-15 11:23:59 +01:00
parent 3877667ff4
commit fea52b54ee

View file

@ -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.