]> granicus.if.org Git - python/commit
Issue #14207: the ParseError exception raised by _elementtree was made
authorEli Bendersky <eliben@gmail.com>
Fri, 16 Mar 2012 06:20:05 +0000 (08:20 +0200)
committerEli Bendersky <eliben@gmail.com>
Fri, 16 Mar 2012 06:20:05 +0000 (08:20 +0200)
commit5b77d81314bb974f212d5849b4c5ceae9e2ba142
tree5cb5d2796e6848d6169bcf21569360c1cdd33cc1
parentf996e775eaf22e6a6465e640a6de46ea74011bc0
Issue #14207: the ParseError exception raised by _elementtree was made
consistent to the one raised by the Python module (the 'code' attribute
was added).

In addition, the exception is now documented.

Added a test to check that ParseError has the required attributes, and
threw away the equivalent doctest which is no longer required.
Doc/library/xml.etree.elementtree.rst
Lib/test/test_xml_etree.py
Modules/_elementtree.c