aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/tasks/mentions.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--webmentions_ssg/tasks/mentions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/webmentions_ssg/tasks/mentions.py b/webmentions_ssg/tasks/mentions.py
index 8f41902..4c3918b 100644
--- a/webmentions_ssg/tasks/mentions.py
+++ b/webmentions_ssg/tasks/mentions.py
@@ -35,7 +35,7 @@ def html_mentions_target(body: bytes, source_url: str, target_url: str) -> bool:
:param body: HTML document body.
:param source_url: URL from which the document was retrieved.
:param target_url: Exact URL to look for.
- :return: Whether a supported HTML URL attribute references the target URL.
+ :returns: Whether a supported HTML URL attribute references the target URL.
"""
document = BeautifulSoup(body, "html.parser")
base_url = source_url
@@ -63,7 +63,7 @@ def text_mentions_target(body: str, target_url: str) -> bool:
:param body: Plain-text document body.
:param target_url: Exact IRI to look for.
- :return: Whether the target IRI occurs in the document.
+ :returns: Whether the target IRI occurs in the document.
"""
for match in IRI_PATTERN.finditer(body):
candidate = match.group()