Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit43522a2

Browse files
committed
Remove obsolete references to PullDOM and update CHANGES.rst
1 parent3ebdd8b commit43522a2

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
iftreeTypenotintreeWalkerCache:
43-
iftreeTypein ("dom","pulldom"):
44-
name="%s.%s"% (__name__,treeType)
45-
__import__(name)
46-
mod=sys.modules[name]
47-
treeWalkerCache[treeType]=mod.TreeWalker
42+
iftreeType=="dom":
43+
from .importdom
44+
treeWalkerCache[treeType]=dom.TreeWalker
4845
eliftreeType=="genshi":
4946
from .importgenshistream
5047
treeWalkerCache[treeType]=genshistream.TreeWalker

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp