mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
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:
parent
3877667ff4
commit
fea52b54ee
1 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue