Skip to content

Commit

Permalink
Use named argument instead of clarifying comment
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
  • Loading branch information
lukpueh committed Mar 5, 2021
1 parent b934ded commit 0b92da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tuf/api/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def to_file(
# Use local scope import to avoid circular import errors
# pylint: disable=import-outside-toplevel
from tuf.api.serialization.json import JSONSerializer
serializer = JSONSerializer(True) # Pass True to compact JSON
serializer = JSONSerializer(compact=True)

with tempfile.TemporaryFile() as temp_file:
temp_file.write(serializer.serialize(self))
Expand Down

0 comments on commit 0b92da9

Please sign in to comment.