From 0b92da91e896a7cab69c3ded39d90b019bb008ba Mon Sep 17 00:00:00 2001 From: Lukas Puehringer Date: Fri, 5 Mar 2021 12:25:50 +0100 Subject: [PATCH] Use named argument instead of clarifying comment Signed-off-by: Lukas Puehringer --- tuf/api/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuf/api/metadata.py b/tuf/api/metadata.py index 26ad595565..0673011a5c 100644 --- a/tuf/api/metadata.py +++ b/tuf/api/metadata.py @@ -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))