Skip to content

Commit 824a8e6

Browse files
committed
Rename parser.py on branch
--HG-- branch : 0.2_branch extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/branches/0.2_branch%40436
1 parent 7e08100 commit 824a8e6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
have the encoding support offered by the elementtree serializer.
3232
3333
"""
34-
from parser import HTMLParser
34+
from html5parser import HTMLParser
File renamed without changes.

tests/test_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import unittest
66
import new
77

8-
from html5lib import parser
8+
from html5lib import html5parser
99
#Run tests over all treebuilders
1010
#XXX - it would be nice to automate finding all treebuilders or to allow running just one
1111
from html5lib.treebuilders import simpletree, etree
@@ -56,7 +56,7 @@ class TestCase(unittest.TestCase):
5656
def runParserTest(self, input, output, errors, treeClass):
5757
#XXX - move this out into the setup function
5858
#concatenate all consecutive character tokens into a single token
59-
p = parser.HTMLParser(tree = treeClass)
59+
p = html5parser.HTMLParser(tree = treeClass)
6060
document = p.parse(StringIO.StringIO(input))
6161
errorMsg = "\n".join(["\n\nExpected:", output, "\nRecieved:",
6262
convertTreeDump(p.tree.testSerializer(document))])

0 commit comments

Comments
 (0)