Skip to content

Commit 665800d

Browse files
committed
API breaking change; make tree the second argument to the HTMLParser rather than the third for the sake of ease of use
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%401218
1 parent 9f4b251 commit 665800d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/html5lib/html5parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class HTMLParser(object):
3232
"""HTML parser. Generates a tree structure from a stream of (possibly
3333
malformed) HTML"""
3434

35-
def __init__(self, strict = False, tree=simpletree.TreeBuilder,
36-
tokenizer=tokenizer.HTMLTokenizer):
35+
def __init__(self, tree=simpletree.TreeBuilder,
36+
tokenizer=tokenizer.HTMLTokenizer, strict = False):
3737
"""
3838
strict - raise an exception when a parse error is encountered
3939

0 commit comments

Comments
 (0)