commit | d81f9e24ea89c0aaded1e0d3f8d8076bbd58c19a | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Fri May 05 10:11:55 2017 +0200 |
committer | GitHub <noreply@github.com> | Fri May 05 10:11:55 2017 +0200 |
tree | 16d3faf0c675d130d6a7163b53f4f87d4e7ac630 | |
parent | fd6094cdebb5736745d164e0207de2d4cb0b50dc [diff] |
bpo-30264: ExpatParser now closes the source (#1476) ExpatParser.parse() of xml.sax.xmlreader now closes the source: close the file object or the urllib object if source is a string (not an open file-like object). Add test_parse_close_source() unit test.