Skip to content

Commit c68db9d

Browse files
committed
Raise a deprecation warning when beautifulsoup is used
1 parent a32c604 commit c68db9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/html5lib/treebuilders/soup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import warnings
22

3+
warnings.warn("BeautifulSoup 3.x (as of 3.1) is not fully compatible with html5lib and support will be removed in the future", DeprecationWarning)
4+
35
from BeautifulSoup import BeautifulSoup, Tag, NavigableString, Comment, Declaration
46

57
import _base

0 commit comments

Comments
 (0)