• Victor Stinner's avatar
    bpo-30264: ExpatParser closes the source on error (#1451) · ef9c0e73
    Victor Stinner yazdı
    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.
    ef9c0e73
Adı
Son kayıt (commit)
Son güncelleme
..
__init__.py Loading commit data...
_exceptions.py Loading commit data...
expatreader.py Loading commit data...
handler.py Loading commit data...
saxutils.py Loading commit data...
xmlreader.py Loading commit data...