Skip to content

Commit 43522a2

Browse files
committed
Remove obsolete references to PullDOM and update CHANGES.rst
1 parent 3ebdd8b commit 43522a2

File tree

3 files changed

+12
-17
lines changed

3 files changed

+12
-17
lines changed

CHANGES.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,20 @@ Released on XXX
88

99
* Added ordereddict as a mandatory dependency on Python 2.6.
1010

11-
* Added ``lxml``, ``genshi``, ``datrie``, ``charade``, and ``all`` extras that
12-
will do the right thing based on the specific interpreter implementation.
11+
* Added ``lxml``, ``genshi``, ``datrie``, ``charade``, and ``all``
12+
extras that will do the right thing based on the specific
13+
interpreter implementation.
1314

1415
* Now requires the ``mock`` package for the testsuite.
1516

1617
* Cease supporting DATrie under PyPy.
1718

19+
* Remove ``PullDOM`` support, as this hasn't ever been properly
20+
tested, doesn't entirely work, and as far as I can tell is
21+
completely unused by anyone.
22+
23+
* Move testsuite to ``py.test``.
24+
1825

1926
0.9999999/1.0b8
2027
~~~~~~~~~~~~~~~

doc/html5lib.treewalkers.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,3 @@ treewalkers Package
4848
:members:
4949
:undoc-members:
5050
:show-inheritance:
51-
52-
:mod:`pulldom` Module
53-
---------------------
54-
55-
.. automodule:: html5lib.treewalkers.pulldom
56-
:members:
57-
:undoc-members:
58-
:show-inheritance:
59-

html5lib/treewalkers/__init__.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def getTreeWalker(treeType, implementation=None, **kwargs):
2727
values are:
2828
2929
"dom" - The xml.dom.minidom DOM implementation
30-
"pulldom" - The xml.dom.pulldom event stream
3130
"etree" - A generic walker for tree implementations exposing an
3231
elementtree-like interface (known to work with
3332
ElementTree, cElementTree and lxml.etree).
@@ -40,11 +39,9 @@ def getTreeWalker(treeType, implementation=None, **kwargs):
4039

4140
treeType = treeType.lower()
4241
if treeType not in treeWalkerCache:
43-
if treeType in ("dom", "pulldom"):
44-
name = "%s.%s" % (__name__, treeType)
45-
__import__(name)
46-
mod = sys.modules[name]
47-
treeWalkerCache[treeType] = mod.TreeWalker
42+
if treeType == "dom":
43+
from . import dom
44+
treeWalkerCache[treeType] = dom.TreeWalker
4845
elif treeType == "genshi":
4946
from . import genshistream
5047
treeWalkerCache[treeType] = genshistream.TreeWalker

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy