Skip to content

Commit 75b9ce6

Browse files
Replace deprecated BeautifulStoneSoup as advised
1 parent 761e404 commit 75b9ce6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cardinal_pythonlib/extract_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ def convert_xml_to_text(
11581158
Converts XML to text.
11591159
"""
11601160
with get_filelikeobject(filename, blob) as fp:
1161-
soup = bs4.BeautifulStoneSoup(fp)
1161+
soup = bs4.BeautifulSoup(fp, features="xml")
11621162
return soup.get_text()
11631163

11641164

0 commit comments

Comments
 (0)