Skip to content

Commit c9c91b8

Browse files
messages: migrate to new bs4 API
Signed-off-by: Emmanuel Ferdman <[email protected]>
1 parent fa3c6e1 commit c9c91b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zulipterminal/ui_tools/messages.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ def indent_quoted_content(soup: Any, padding_char: str) -> int:
915915
blockquote_list = soup.find_all("blockquote")
916916
bq_len = len(blockquote_list)
917917
for tag in blockquote_list:
918-
child_list = tag.findChildren(recursive=False)
918+
child_list = tag.find_all(recursive=False)
919919
child_block = tag.find_all("blockquote")
920920
actual_padding = f"{padding_char} " * pad_count
921921
if len(child_list) == 1:
@@ -937,8 +937,8 @@ def indent_quoted_content(soup: Any, padding_char: str) -> int:
937937
new_tag.string = actual_padding
938938
# If the quoted message is multi-line message
939939
# we deconstruct it and pad it at break-points (<br/>)
940-
for br in child.findAll("br"):
941-
next_s = br.nextSibling
940+
for br in child.find_all("br"):
941+
next_s = br.next_sibling
942942
text = str(next_s.string).strip()
943943
if text:
944944
insert_tag = soup.new_tag("p")

0 commit comments

Comments
 (0)