aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-10-31 15:18:45 +0000
committerGravatar jesopo2019-10-31 15:18:45 +0000
commit8831724af0c9961b27725689980385c5a08d4697 (patch)
treec30f76a9a429b5a979a8669b339fc1e1196d8a70 /modules
parentuse lxml for parsing fedi Notes. html.parse is bad and unpredictable (diff)
signature
'element.contents' -> 'element.children' for consistency
Diffstat (limited to 'modules')
-rw-r--r--modules/fediverse/ap_utils.py2
1 files changed, 1 insertions, 1 deletions
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)