[issue28632] configparser does not close files in read

Petr report at bugs.python.org
Tue Nov 8 06:18:15 EST 2016


Petr added the comment:

I am sorry, I can only reproduce it in the production environment so far, it does only occur on Ubuntu Linux (Python 3.5.1) and I am developing on Windows. So right now I cannot narrow it down (it does not occur with simple code, unfortunately). This is what I get after some experimentation:

Exception ignored in: <_io.FileIO name='config.ini' mode='rb' closefd=True>
ResourceWarning: unclosed file <_io.TextIOWrapper name='config.ini' mode='r' encoding='UTF-8'>

The only place when I work with config.ini is the read method of ConfigParser, so it definitely should be an issue in ConfigParser.

----------

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


More information about the Python-bugs-list mailing list