[issue28632] configparser does not close files in read

Terry J. Reedy report at bugs.python.org
Fri Nov 11 20:12:00 EST 2016


Terry J. Reedy added the comment:

Given that the open is context managed
                with open(filename, encoding=encoding) as fp:
                    self._read(fp, filename)
how could fp not be closed?

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28632>
_______________________________________


More information about the Python-bugs-list mailing list