Skip to content

Commit

Permalink
Remove obsolete references to PullDOM and update CHANGES.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnedders committed Dec 12, 2015
1 parent 3ebdd8b commit 43522a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
11 changes: 9 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ Released on XXX

* Added ordereddict as a mandatory dependency on Python 2.6.

* Added ``lxml``, ``genshi``, ``datrie``, ``charade``, and ``all`` extras that
will do the right thing based on the specific interpreter implementation.
* Added ``lxml``, ``genshi``, ``datrie``, ``charade``, and ``all``
extras that will do the right thing based on the specific
interpreter implementation.

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

* Cease supporting DATrie under PyPy.

* Remove ``PullDOM`` support, as this hasn't ever been properly
tested, doesn't entirely work, and as far as I can tell is
completely unused by anyone.

* Move testsuite to ``py.test``.


0.9999999/1.0b8
~~~~~~~~~~~~~~~
Expand Down
9 changes: 0 additions & 9 deletions doc/html5lib.treewalkers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,3 @@ treewalkers Package
:members:
:undoc-members:
:show-inheritance:

:mod:`pulldom` Module
---------------------

.. automodule:: html5lib.treewalkers.pulldom
:members:
:undoc-members:
:show-inheritance:

9 changes: 3 additions & 6 deletions html5lib/treewalkers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def getTreeWalker(treeType, implementation=None, **kwargs):
values are:
"dom" - The xml.dom.minidom DOM implementation
"pulldom" - The xml.dom.pulldom event stream
"etree" - A generic walker for tree implementations exposing an
elementtree-like interface (known to work with
ElementTree, cElementTree and lxml.etree).
Expand All @@ -40,11 +39,9 @@ def getTreeWalker(treeType, implementation=None, **kwargs):

treeType = treeType.lower()
if treeType not in treeWalkerCache:
if treeType in ("dom", "pulldom"):
name = "%s.%s" % (__name__, treeType)
__import__(name)
mod = sys.modules[name]
treeWalkerCache[treeType] = mod.TreeWalker
if treeType == "dom":
from . import dom
treeWalkerCache[treeType] = dom.TreeWalker
elif treeType == "genshi":
from . import genshistream
treeWalkerCache[treeType] = genshistream.TreeWalker
Expand Down

0 comments on commit 43522a2

Please sign in to comment.