You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cElementTree & ElementTree use different exceptions for XML Errors #50514
bpo-6472: Update ElementTree with upstream changes
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2010-03-11.15:00:15.219>created_at=<Date2009-06-11.10:46:46.439>labels= ['type-bug']
title='cElementTree & ElementTree use different exceptions for XML Errors'updated_at=<Date2010-03-11.15:00:15.045>user='https://bugs.python.org/NeilMuller'
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.
florentx commented on Feb 16, 2010
florentxmannequin
Mannequin
More actions
Should be fixed with upstream ElementTree 1.3/cElementTree 1.0.6.
Activity
NeilMuller commentedon Jun 11, 2009
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.
florentx commentedon Feb 16, 2010
Should be fixed with upstream ElementTree 1.3/cElementTree 1.0.6.
See issue bpo-6472.