Message280253
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'>
$
``` |
|
Date |
User |
Action |
Args |
2016-11-07 22:28:37 | lukasz.langa | set | recipients:
+ lukasz.langa, serhiy.storchaka, PetrPy |
2016-11-07 22:28:37 | lukasz.langa | set | messageid: <1478557717.02.0.768558869295.issue28632@psf.upfronthosting.co.za> |
2016-11-07 22:28:37 | lukasz.langa | link | issue28632 messages |
2016-11-07 22:28:36 | lukasz.langa | create | |
|