Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision 0fe870f3f95ba883b2b06bc0d814bdab8d53df98 authored by Victor Stinner on 05 May 2017, 08:04:57 UTC, committed by GitHub on 05 May 2017, 08:04:57 UTC
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)
1 parent 39b73dd
Tip revision: 0fe870f3f95ba883b2b06bc0d814bdab8d53df98 authored by Victor Stinner on 05 May 2017, 08:04:57 UTC
bpo-30264: ExpatParser closes the source on error (#1451) (#1474)
bpo-30264: ExpatParser closes the source on error (#1451) (#1474)
Tip revision: 0fe870f
File | Mode | Size |
---|---|---|
.github | ||
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Programs | ||
Python | ||
Tools | ||
.bzrignore | -rw-r--r-- | 582 bytes |
.codecov.yml | -rw-r--r-- | 545 bytes |
.gitattributes | -rw-r--r-- | 255 bytes |
.gitignore | -rw-r--r-- | 1.3 KB |
.hgeol | -rw-r--r-- | 1.0 KB |
.hgignore | -rw-r--r-- | 1.3 KB |
.hgtags | -rw-r--r-- | 8.7 KB |
.mention-bot | -rw-r--r-- | 39 bytes |
.travis.yml | -rw-r--r-- | 3.4 KB |
LICENSE | -rw-r--r-- | 12.5 KB |
Makefile.pre.in | -rw-r--r-- | 57.8 KB |
README.rst | -rw-r--r-- | 9.1 KB |
aclocal.m4 | -rw-r--r-- | 10.7 KB |
config.guess | -rwxr-xr-x | 41.9 KB |
config.sub | -rwxr-xr-x | 34.9 KB |
configure | -rwxr-xr-x | 472.9 KB |
configure.ac | -rw-r--r-- | 156.1 KB |
install-sh | -rwxr-xr-x | 7.0 KB |
pyconfig.h.in | -rw-r--r-- | 40.4 KB |
setup.py | -rw-r--r-- | 98.8 KB |
Computing file changes ...