mirror of
https://github.com/python/cpython.git
synced 2025-10-28 04:04:44 +00:00
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. |
||
|---|---|---|
| .. | ||
| dom | ||
| etree | ||
| parsers | ||
| sax | ||
| __init__.py | ||