From 020c0951942d2b7f397399ee0a4f9892ecedf65b Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 1 Dec 2013 15:44:19 +0100 Subject: [PATCH] Pretty-print JSON to cache Easier for debugging, not really needed though, takes more place for nothing --- morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss.py b/morss.py index 7340527..76a609d 100644 --- a/morss.py +++ b/morss.py @@ -171,7 +171,7 @@ class Cache: os.makedirs(self._dir) with open(self._file, 'w') as file: - file.write(json.dumps(self._cache)) + file.write(json.dumps(self._cache, indent=4)) def isYoungerThan(self, sec): if not os.path.exists(self._file):