From bf58c02abf418556927363cf79cc86bee58d0592 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Sun, 7 Dec 2014 09:31:30 -0500 Subject: Issue a warning if the BeautifulSoup constructor arguments do not explicitly name a parser. --- bs4/builder/_html5lib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bs4/builder/_html5lib.py') diff --git a/bs4/builder/_html5lib.py b/bs4/builder/_html5lib.py index 6446c2e..6013575 100644 --- a/bs4/builder/_html5lib.py +++ b/bs4/builder/_html5lib.py @@ -22,7 +22,9 @@ from bs4.element import ( class HTML5TreeBuilder(HTMLTreeBuilder): """Use html5lib to build a tree.""" - features = ['html5lib', PERMISSIVE, HTML_5, HTML] + NAME = "html5lib" + + features = [NAME, PERMISSIVE, HTML_5, HTML] def prepare_markup(self, markup, user_specified_encoding): # Store the user-specified encoding for use later on. -- cgit v1.2.3