Skip to content

Commit 048e602

Browse files
committed
Revert disaterous change that prevented the parser from running
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40412
1 parent bb790b6 commit 048e602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, strict = False, tree=simpletree.TreeBuilder):
4545
self.strict = strict
4646
self.errors = []
4747

48-
self._treeCls = tree
48+
self.tree = tree()
4949

5050
self.phases = {
5151
"initial": InitialPhase(self, self.tree),
@@ -76,7 +76,7 @@ def parse(self, stream, innerHTML=False):
7676
issues have not yet been dealt with."""
7777

7878
# XXX - need to ensure the tree is reset here
79-
self.tree = self._treeCls()
79+
8080

8181
# We don't actually support innerHTML yet but this should allow
8282
# assertations

0 commit comments

Comments
 (0)