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

Serhiy Storchaka report at bugs.python.org
Mon Mar 2 01:39:56 EST 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:


New changeset 2565edec2c974b2acca03b4cc5025e83f903ddd7 by Chris A in branch 'master':
bpo-38971: Open file in codecs.open() closes if exception raised. (GH-17666)
https://github.com/python/cpython/commit/2565edec2c974b2acca03b4cc5025e83f903ddd7


----------

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


More information about the Python-bugs-list mailing list