[issue775321] plistlib error handling

Ezio Melotti report at bugs.python.org
Mon Apr 11 06:12:12 CEST 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

Note that this behavior is documented[0]:
"""
The XML data is parsed using the Expat parser from xml.parsers.expat – see its documentation for possible exceptions on ill-formed XML. Unknown elements will simply be ignored by the plist parser.
"""

Since this is documented and expat only has an exception type (xml.parsers.expat.ExpatError) I don't think is necessary to do anything here.
Unless you think that the doc should be rephrased, this can be closed again.

[0]: http://docs.python.org/library/plistlib.html#plistlib.readPlist

----------
assignee: jvr -> 
nosy: +ezio.melotti

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue775321>
_______________________________________


More information about the Python-bugs-list mailing list