From 8831724af0c9961b27725689980385c5a08d4697 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 31 Oct 2019 15:18:45 +0000 Subject: [PATCH] 'element.contents' -> 'element.children' for consistency --- modules/fediverse/ap_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/fediverse/ap_utils.py b/modules/fediverse/ap_utils.py index 8d8dfa6e..bef5c71a 100644 --- a/modules/fediverse/ap_utils.py +++ b/modules/fediverse/ap_utils.py @@ -72,7 +72,7 @@ def _normalise_note(content): out = "" if type(element) == bs4.element.Tag: if element.name == "p": - for subitem in element.contents: + for subitem in element.children: if type(subitem) == bs4.element.Tag: if subitem.name == "br": lines.append(out)