Message320326
The current status of json.tool also leaks a file descriptor if you use the same filename or an invalid one (needs debug build to receive this error message):
$ ./python -m json.tool invalid_file.dat nofile.dat
Expecting value: line 1 column 1 (char 0)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='nofile.dat' mode='w' encoding='UTF-8'>
$ ./python -m json.tool valid.dat valid.dat
Expecting value: line 1 column 1 (char 0)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='valid.dat' mode='w' encoding='UTF-8'> |
|
Date |
User |
Action |
Args |
2018-06-23 19:28:36 | pablogsal | set | recipients:
+ pablogsal, rhettinger, ezio.melotti, matrixise, remi.lapeyre, kuhlmann |
2018-06-23 19:28:36 | pablogsal | set | messageid: <1529782116.3.0.56676864532.issue33927@psf.upfronthosting.co.za> |
2018-06-23 19:28:36 | pablogsal | link | issue33927 messages |
2018-06-23 19:28:36 | pablogsal | create | |
|