From 2fe3da8f347e2cb0572d7251e4daf5abc908ba0d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 21 Sep 2022 21:00:57 +0100 Subject: [PATCH] Fix line lengths --- filters.py | 3 ++- inbox.py | 6 +++--- posts.py | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/filters.py b/filters.py index bce3cf468..4cc6d78fa 100644 --- a/filters.py +++ b/filters.py @@ -15,7 +15,8 @@ from utils import standardize_text def add_filter(base_dir: str, nickname: str, domain: str, words: str) -> bool: - """Adds a filter for particular words within the content of a incoming posts + """Adds a filter for particular words within the content of a + incoming posts """ filters_filename = acct_dir(base_dir, nickname, domain) + '/filters.txt' if os.path.isfile(filters_filename): diff --git a/inbox.py b/inbox.py index 5b5505a91..836cf7f01 100644 --- a/inbox.py +++ b/inbox.py @@ -1784,9 +1784,9 @@ def _receive_zot_reaction(recent_posts_cache: {}, max_like_count: int, cw_lists: {}, lists_enabled: str, bold_reading: bool, dogwhistles: {}) -> bool: - """Receives an zot-style emoji reaction within the POST section of HTTPServer - A zot style emoji reaction is an ordinary reply Note whose content is - exactly one emoji + """Receives an zot-style emoji reaction within the POST section of + HTTPServer A zot style emoji reaction is an ordinary reply Note whose + content is exactly one emoji """ if not has_actor(message_json, debug): return False diff --git a/posts.py b/posts.py index b3db92270..7aa54e971 100644 --- a/posts.py +++ b/posts.py @@ -131,7 +131,8 @@ def is_moderator(base_dir: str, nickname: str) -> bool: def no_of_followers_on_domain(base_dir: str, handle: str, domain: str, follow_file='followers.txt') -> int: - """Returns the number of followers of the given handle from the given domain + """Returns the number of followers of the given handle from the + given domain """ filename = base_dir + '/accounts/' + handle + '/' + follow_file if not os.path.isfile(filename):