[New-bugs-announce] [issue38971] codecs.open leaks file descriptor when invalid encoding is passed

Brock Mendel report at bugs.python.org
Wed Dec 4 11:51:47 EST 2019


New submission from Brock Mendel <jbrockmendel at gmail.com>:

xref https://github.com/pandas-dev/pandas/pull/30034

codecs.open does `file = open(...)` before validating the encoding kwarg, leaving the open file behind if that validation raises.

----------
messages: 357811
nosy: Brock Mendel
priority: normal
severity: normal
status: open
title: codecs.open leaks file descriptor when invalid encoding is passed

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


More information about the New-bugs-announce mailing list