File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 5050except ImportError :
5151 pass
5252
53+ #Try whatever dom implementations are avaliable from a list that are
54+ #"supposed" to work
55+ try :
56+ import pxdom
57+ treeTypes ["pxdom" ] = treebuilders .getTreeBuilder ("dom" , pxdom )
58+ except ImportError :
59+ pass
60+
5361#Run the parse error checks
5462checkParseErrors = False # TODO
5563
Original file line number Diff line number Diff line change @@ -94,6 +94,16 @@ def PullDOMAdapter(node):
9494 "walker" : treewalkers .getTreeWalker ("beautifulsoup" )}
9595except ImportError :
9696 pass
97+
98+ #Try whatever etree implementations are available from a list that are
99+ #"supposed" to work
100+ try :
101+ import pxdom
102+ treeTypes ['pxdom' ] = \
103+ {"builder" : treebuilders .getTreeBuilder ("dom" , pxdom ),
104+ "walker" : treewalkers .getTreeWalker ("dom" )}
105+ except ImportError :
106+ pass
97107
98108try :
99109 from genshi .core import QName , Attrs
You can’t perform that action at this time.
0 commit comments