This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lukasz.langa
Recipients PetrPy, lukasz.langa, serhiy.storchaka
Date 2016-11-07.22:28:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478557717.02.0.768558869295.issue28632@psf.upfronthosting.co.za>
In-reply-to
Content
Cannot repro:
```
$ python3
Python 3.5.2 (default, Jul 28 2016, 21:28:00)
>>> with open('/tmp/someconfig.py', 'w') as w:
...   w.write("""[section]
... option=value
... """)
...
23
>>> import configparser
>>> cp = configparser.ConfigParser()
>>> cp.read('/tmp/someconfig.py')
['/tmp/someconfig.py']
>>> [CTRL+D]
$
```

If I leave a file unclosed, I get warning:
```
$ python3
Python 3.5.2 (default, Jul 28 2016, 21:28:00)
>>> open('/tmp/someconfig.py')
<_io.TextIOWrapper name='/tmp/someconfig.py' mode='r' encoding='UTF-8'>
>>> [CTRL+D]
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/someconfig.py' mode='r' encoding='UTF-8'>
$
```
History
Date User Action Args
2016-11-07 22:28:37lukasz.langasetrecipients: + lukasz.langa, serhiy.storchaka, PetrPy
2016-11-07 22:28:37lukasz.langasetmessageid: <1478557717.02.0.768558869295.issue28632@psf.upfronthosting.co.za>
2016-11-07 22:28:37lukasz.langalinkissue28632 messages
2016-11-07 22:28:36lukasz.langacreate