Package: python3-lxml
Version: 4.6.3+dfsg-0.1
Control: affects -1 + urlwatch
After upgrading libxml2 to 2.9.12+dfsg-3, the tostring() function
started returning strings with some trailing junk:
>>> import lxml.etree
>>> html = lxml.etree.fromstring('<html><p>P</p></html>')
>>> lxml.etree.tostring(html[0])
b'<p>P</p></html>'
This worked fine with libxml2 2.9.10+dfsg-6.7:
>>> lxml.etree.tostring(html[0])
b'<p>P</p>'
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Versions of packages python3-lxml depends on:
ii libc6 2.31-17
ii libxml2 2.9.12+dfsg-3
ii libxslt1.1 1.1.34-4
ii python3 3.9.2-3
--
Jakub Wilk