From 765f5a192d6265b38ce598de591b479c55c34b42 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Fri, 16 Jun 2023 02:22:52 +0300 Subject: [PATCH] indent for auth file --- funkwhale_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/funkwhale_cli.py b/funkwhale_cli.py index d5dbfb2..fb873dc 100755 --- a/funkwhale_cli.py +++ b/funkwhale_cli.py @@ -119,10 +119,10 @@ Read | Write (optional): Insert token from "Access token" here''') register_token = input() with open('.auth.json', 'rt') as f: - tkns = json.loads(f.read()) + tkns = json.load(f) with open('.auth.json', 'wt') as f: tkns[current_instance.instance] = register_token - f.write(json.dumps(tkns)) + f.write(json.dumps(tkns, indent=4)) del tkns del register_token del f