From 6b613287bf05aafc06617661612347c12f4f9521 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Mon, 19 Sep 2022 02:53:00 +0200 Subject: [PATCH] packages.srcinfo_cache: make dumped json more human-readable with indent=2 --- packages/srcinfo_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/srcinfo_cache.py b/packages/srcinfo_cache.py index 4de24d6..2afd0f6 100644 --- a/packages/srcinfo_cache.py +++ b/packages/srcinfo_cache.py @@ -153,7 +153,7 @@ class SrcinfoMetaFile(DataClass): def toJSON(self) -> str: 'Returns a json representation, with private keys that start with "_" filtered out' - return json.dumps({key: val for key, val in self.toDict().items() if not key.startswith('_')}) + return json.dumps({key: val for key, val in self.toDict().items() if not key.startswith('_')}, indent=2) def write(self): 'Write the filtered json representation to disk as srcinfo_meta.json'