summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/subprocess.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-05-05 08:04:57 (GMT)
committerGitHub <noreply@github.com>2017-05-05 08:04:57 (GMT)
commit0fe870f3f95ba883b2b06bc0d814bdab8d53df98 (patch)
treefd94539649980663fdcf0e89ac84dfd7d0ebaada /Lib/asyncio/subprocess.py
parent39b73dd5131ce205dcee3b9e24ba0fc28934d79c (diff)
downloadcpython-0fe870f3f95ba883b2b06bc0d814bdab8d53df98.zip
cpython-0fe870f3f95ba883b2b06bc0d814bdab8d53df98.tar.gz
cpython-0fe870f3f95ba883b2b06bc0d814bdab8d53df98.tar.bz2
bpo-30264: ExpatParser closes the source on error (#1451) (#1474)
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. (cherry picked from commit ef9c0e732fc50aefbdd7c5a80e04e14b31684e66)
Diffstat (limited to 'Lib/asyncio/subprocess.py')
0 files changed, 0 insertions, 0 deletions