[Python-modules-team] Bug#461629: python-elementtidy disfunctional since libtidy upgrade.

Erich Schubert erich at debian.org
Thu Apr 3 00:27:34 UTC 2008

severity 461629 grave

For all I know, the package is now unusable in both testing and
unstable. Feel free to change the severity back if you know otherwise.

With the previous libtidy version:
from elementtidy import TidyHTMLTreeBuilder
print t.close()
<Element {http://www.w3.org/1999/xhtml}html at -48204914>

With the current version:
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
line 95, in close
    return ElementTree.XML(stdout)
  File "/var/lib/python-support/python2.4/elementtree/ElementTree.py",
line 960, in XML
  File "/var/lib/python-support/python2.4/elementtree/ElementTree.py",
line 1242, in feed
    self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1,
column 1

I figure the document I tried is the simplest testcase I could come up
with. It's even using XML syntax to make it easier for Expat.
An empty string won't work either, btw.

best regards,
Erich Schubert
    erich@(vitavonni.de|debian.org)    --    GPG Key ID: 4B3A135C    (o_
        The best things in life are free: Friendship and Love.       //\
  Es ist nicht wenig Zeit, die wir haben, sondern es ist viel Zeit,  V_/_
                   die wir nicht nutzen. --- Seneca

More information about the Python-modules-team mailing list