From 066e77d4931178384bb749828f0a2ee16d923ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Thu, 12 Jan 2023 16:01:55 +0100 Subject: [PATCH] refactor: Rename load_local_blocklist -> load_blocklist_file --- mastodon_blocklist_deploy/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon_blocklist_deploy/cli.py b/mastodon_blocklist_deploy/cli.py index 8ac9c8b..0b8d607 100644 --- a/mastodon_blocklist_deploy/cli.py +++ b/mastodon_blocklist_deploy/cli.py @@ -9,7 +9,7 @@ import toml from mastodon_blocklist_deploy.models import Instance -def load_local_blocklist(filename: str) -> [Instance]: +def load_blocklist_file(filename: str) -> [Instance]: with open(filename, "r") as f: data = toml.load(f) instances = [] @@ -89,7 +89,7 @@ def cli(): blocklist_filename = args.input_file else: blocklist_filename = "../blocklist.toml" - local_blocklist = load_local_blocklist(blocklist_filename) + local_blocklist = load_blocklist_file(blocklist_filename) if args.action == "diff": Instance.show_diffs(local_blocklist, remote_blocklist)