Skip to content

Commit 7064a97

Browse files
committed
Python module namespace cleanup
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40814
1 parent fc56338 commit 7064a97

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+43
-173
lines changed

parse.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@
1111

1212
#RELEASE remove
1313
sys.path.insert(0,os.path.abspath(os.path.join(__file__,'../src')))
14-
import html5parser, liberalxmlparser
15-
import treebuilders, serializer, treewalkers
16-
#END RELEASE
17-
#RELEASE add
18-
#from html5lib import html5parser, liberalxmlparser
19-
#from html5lib import treebuilders, serializer, treewalkers
2014
#END RELEASE
15+
from html5lib import html5parser, liberalxmlparser
16+
from html5lib import treebuilders, serializer, treewalkers
2117

2218
def parse():
2319
optParser = getOptParser()

src/filters/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/html5lib/filters/__init__.py

Whitespace-only changes.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
_ = gettext
33

44
import _base
5-
from constants import cdataElements, rcdataElements, voidElements
5+
from html5lib.constants import cdataElements, rcdataElements, voidElements
66

7-
from constants import spaceCharacters
7+
from html5lib.constants import spaceCharacters
88
spaceCharacters = u"".join(spaceCharacters)
99

1010
class LintError(Exception): pass
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
import re
88

99
import _base
10-
from constants import rcdataElements
11-
12-
from constants import spaceCharacters
10+
from html5lib.constants import rcdataElements, spaceCharacters
1311
spaceCharacters = u"".join(spaceCharacters)
1412

1513
class Filter(_base.Filter):

0 commit comments

Comments
 (0)