summaryrefslogtreecommitdiff
path: root/Python/thread_foobar.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-05-05 09:46:47 +0200
committerGitHub <noreply@github.com>2017-05-05 09:46:47 +0200
commitef9c0e732fc50aefbdd7c5a80e04e14b31684e66 (patch)
treea59653d14c060ab0037012529ccc678ee8049b96 /Python/thread_foobar.h
parent7186cc29be352bed6f1110873283d073fd0643e4 (diff)
downloadcpython-git-ef9c0e732fc50aefbdd7c5a80e04e14b31684e66.tar.gz
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.
Diffstat (limited to 'Python/thread_foobar.h')
0 files changed, 0 insertions, 0 deletions