[lxml-dev] lxml 2.2.2 released
Stefan Behnel
stefan_ml at behnel.de
Sun Jun 21 09:57:56 CEST 2009
Hi all,
I just released lxml 2.2.2 to PyPI. This is (mainly) a bug fix release that
contains a fix for a potential tree corruption in namespace handling during
tree manipulations. Since this can be triggered by input data (depending on
your code), you might want to upgrade if you do not control your input.
Changelog follows below, as usual.
Stefan
2.2.2 (2009-06-21)
Features added
* New helper functions strip_attributes(), strip_elements(),
strip_tags() in lxml.etree to remove attributes/subtrees/tags
from a subtree.
Bugs fixed
* Namespace cleanup on subtree insertions could result in missing
namespace declarations (and potentially crashes) if the element
defining a namespace was deleted and the namespace was not used
by the top element of the inserted subtree but only in deeper
subtrees.
* Raising an exception from a parser target callback didn't always
terminate the parser.
* Only {true, false, 1, 0} are accepted as the lexical representation
for BoolElement ({True, False, T, F, t, f} not any more), restoring
lxml <= 2.0 behaviour.
More information about the lxml-dev
mailing list