New submission from Brock Mendel <jbrockmen...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue38971> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com