Message 89247 - Python tracker
cElementTree will raise a SyntaxError on XML parsing errors, while ElementTree will raise ExpatError. This makes changing between the two a bit more problematic than it could be. See for example https://lists.canonical.com/archives/bazaar/2006q3/017491.html ElementTree 1.3 raises a ParseError, which is subclassed from SyntaxError, which will improve the situation when it's merged, but cElementTree should be adjusted to raise the same error.