add a comment to say why elementtidy support is disabled
This commit is contained in:
parent
6159a789b5
commit
9329df5b43
1 changed files with 8 additions and 0 deletions
|
|
@ -24,7 +24,15 @@ except ImportError:
|
|||
from xml.etree import ElementTree
|
||||
|
||||
try:
|
||||
# XXX Currently, elementtidy segfaults when there are no error, because of
|
||||
# the behavior of libtidy.
|
||||
# A patch has been sent to Debian:
|
||||
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576343
|
||||
#
|
||||
# As it is not integrated in Debian yet, and as this problem persists on other
|
||||
# systems, using elementtidy is for now disabled.
|
||||
raise ImportError
|
||||
|
||||
from elementtidy import TidyHTMLTreeBuilder
|
||||
TidyHTMLTreeBuilder.ElementTree = ElementTree # force cElementTree if using it.
|
||||
HTMLTreeBuilder = TidyHTMLTreeBuilder.TidyHTMLTreeBuilder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue