Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit 2a16957

Browse files
author
Mike Spitzer
committed
Explicitly call html.parser to avoid BeautifulSoup error messages.
1 parent 8489a87 commit 2a16957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geeknote/editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def checklistInENMLtoSoup(soup):
7676

7777
@staticmethod
7878
def ENMLtoText(contentENML):
79-
soup = BeautifulSoup(contentENML.decode('utf-8'))
79+
soup = BeautifulSoup(contentENML.decode('utf-8'), 'html.parser')
8080

8181
for section in soup.select('li > p'):
8282
section.replace_with( section.contents[0] )

0 commit comments

Comments
 (0)