[issue38971] codecs.open leaks file descriptor when invalid encoding is passed

miss-islington report at bugs.python.org
Mon Mar 2 03:03:11 EST 2020


miss-islington <mariatta.wijaya+miss-islington at gmail.com> added the comment:


New changeset f28b0c74e54a133cb0287b4297af67d0d7c14d6e by Miss Islington (bot) in branch '3.8':
bpo-38971: Open file in codecs.open() closes if exception raised. (GH-17666)
https://github.com/python/cpython/commit/f28b0c74e54a133cb0287b4297af67d0d7c14d6e


----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38971>
_______________________________________


More information about the Python-bugs-list mailing list