diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-03-02 08:03:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 08:03:08 (GMT) |
commit | f28b0c74e54a133cb0287b4297af67d0d7c14d6e (patch) | |
tree | 2e0c2e81b33b47f7dbef6b00add489008884d442 /Python/ceval.c | |
parent | 87a4cd5fbebdd0e6166b421d2c3706bc2f2e5a11 (diff) | |
download | cpython-f28b0c74e54a133cb0287b4297af67d0d7c14d6e.zip cpython-f28b0c74e54a133cb0287b4297af67d0d7c14d6e.tar.gz cpython-f28b0c74e54a133cb0287b4297af67d0d7c14d6e.tar.bz2 |
bpo-38971: Open file in codecs.open() closes if exception raised. (GH-17666)
Open issue in the BPO indicated a desire to make the implementation of
codecs.open() at parity with io.open(), which implements a try/except to
assure file stream gets closed before an exception is raised.
(cherry picked from commit 2565edec2c974b2acca03b4cc5025e83f903ddd7)
Co-authored-by: Chris A <christopher.aporta@gmail.com>
Diffstat (limited to 'Python/ceval.c')
0 files changed, 0 insertions, 0 deletions