cpython/Lib/xml/sax
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
..
__init__.py Issue #10590: xml.sax.parseString() now supports string argument. 2015-04-04 10:12:26 +03:00
_exceptions.py Issue #16714: use 'raise' exceptions, don't 'throw'. 2012-12-18 21:14:22 +02:00
expatreader.py bpo-30264: ExpatParser closes the source on error (#1451) 2017-05-05 09:46:47 +02:00
handler.py
saxutils.py Issue #2175: SAX parsers now support a character stream of InputSource object. 2015-04-02 21:00:13 +03:00
xmlreader.py Issue #2175: SAX parsers now support a character stream of InputSource object. 2015-04-02 21:00:13 +03:00