diff options
author | Chris A <christopher.aporta@gmail.com> | 2020-03-02 06:39:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 06:39:50 (GMT) |
commit | 2565edec2c974b2acca03b4cc5025e83f903ddd7 (patch) | |
tree | 58c6999be2b2ad47bcfcf5e5f294c8a07e81ff84 /Misc | |
parent | 4edc95cf0a2960431621eee9bc194f6225f1690b (diff) | |
download | cpython-2565edec2c974b2acca03b4cc5025e83f903ddd7.zip cpython-2565edec2c974b2acca03b4cc5025e83f903ddd7.tar.gz cpython-2565edec2c974b2acca03b4cc5025e83f903ddd7.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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-12-20-16-06-28.bpo-38971.fKRYlF.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-12-20-16-06-28.bpo-38971.fKRYlF.rst b/Misc/NEWS.d/next/Library/2019-12-20-16-06-28.bpo-38971.fKRYlF.rst new file mode 100644 index 0000000..9676d72 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-12-20-16-06-28.bpo-38971.fKRYlF.rst @@ -0,0 +1,3 @@ +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.
\ No newline at end of file |