cpython/Lib/xml
Victor Stinner ef9c0e732f bpo-30264: ExpatParser closes the source on error (#1451)
ExpatParser.parse() of xml.sax.xmlreader now always closes the
source: close the file object or the urllib object if source is a
string (not an open file-like object). The change fixes a
ResourceWarning on parsing error.

Add test_parse_close_source() unit test.
2017-05-05 09:46:47 +02:00
..
dom bpo-29762: More use "raise from None". (#569) 2017-04-05 09:37:24 +03:00
etree bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263) 2017-04-24 09:05:00 +03:00
parsers
sax bpo-30264: ExpatParser closes the source on error (#1451) 2017-05-05 09:46:47 +02:00
__init__.py