fix(api): Use latest bs4 syntax for declaring parser
This commit is contained in:
@@ -16,8 +16,7 @@ def clean_tree(title: str, id: int, body: str) -> BeautifulSoup:
|
|||||||
<h1 class="chapter-title" id={id}>{title}</h1>
|
<h1 class="chapter-title" id={id}>{title}</h1>
|
||||||
<section class="chapter-body"></section>
|
<section class="chapter-body"></section>
|
||||||
""",
|
""",
|
||||||
parser="html.parser", # head/body tags aren't generated
|
features="html.parser", # head/body tags aren't generated
|
||||||
features="lxml",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
insert_at = cast(Tag, new_soup.find("section"))
|
insert_at = cast(Tag, new_soup.find("section"))
|
||||||
|
|||||||
Reference in New Issue
Block a user