diff options
author | Leonard Richardson <leonardr@segfault.org> | 2014-12-07 09:31:30 -0500 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2014-12-07 09:31:30 -0500 |
commit | bf58c02abf418556927363cf79cc86bee58d0592 (patch) | |
tree | 747e9f5a6d6aa7fcce064ad44c9efb5e43fdca73 /bs4/builder/_html5lib.py | |
parent | a7f63d509473e11a48ff3f9b2d8b37a19a7a25ef (diff) |
Issue a warning if the BeautifulSoup constructor arguments do not explicitly name a parser.
Diffstat (limited to 'bs4/builder/_html5lib.py')
-rw-r--r-- | bs4/builder/_html5lib.py | 4 |
1 files changed, 3 insertions, 1 deletions
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. |