diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-03-02 08:02:16 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-02 08:02:16 (GMT) |
| commit | f4d709f4a3c69bd940bd6968a70241277132bed7 (patch) | |
| tree | 723a3f69fc65008dc7b2d7c63af10c70373413c4 /Python/pythonmain.c | |
| parent | d3c24350892b55b4ea6fb81b84e577968c1f2f91 (diff) | |
| download | cpython-f4d709f4a3c69bd940bd6968a70241277132bed7.zip cpython-f4d709f4a3c69bd940bd6968a70241277132bed7.tar.gz cpython-f4d709f4a3c69bd940bd6968a70241277132bed7.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/pythonmain.c')
0 files changed, 0 insertions, 0 deletions
