From 4b9f21a192d20a584eeb5714e60a7f790288532b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 10 Apr 2024 11:43:24 +0100 Subject: [PATCH] Tidying --- epicyon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/epicyon.py b/epicyon.py index ab302a42e..83215b692 100644 --- a/epicyon.py +++ b/epicyon.py @@ -72,6 +72,7 @@ from tests import test_update_actor from tests import run_all_tests from auth import store_basic_credentials from auth import create_password +from utils import string_ends_with from utils import remove_html from utils import remove_eol from utils import text_in_file @@ -3101,9 +3102,8 @@ def _command_options() -> None: sys.exit() if argb.archive: - if argb.archive.lower().endswith('null') or \ - argb.archive.lower().endswith('delete') or \ - argb.archive.lower().endswith('none'): + archive_lower = argb.archive.lower() + if string_ends_with(archive_lower, ('null', 'delete', 'none')): argb.archive = None print('Archiving with deletion of old posts...') else: