Message120874
For some reason, this starts happening with the Lib/tokenize.py change in r86346. Resource warnings don't get enabled by -Wd:
With r86345:
$ ./python -Wd -c "open('LICENSE')"
-c:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='LICENSE' encoding='UTF-8'>
With r86346:
$ ./python -Wd -c "open('LICENSE')"
But enabling warnings programmatically still works:
$ ./python -c "import warnings; warnings.simplefilter('default'); open('LICENSE')"
-c:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='LICENSE' encoding='UTF-8'> |
|
Date |
User |
Action |
Args |
2010-11-09 16:08:41 | pitrou | set | recipients:
+ pitrou, georg.brandl, vstinner, donmez |
2010-11-09 16:08:41 | pitrou | set | messageid: <1289318921.42.0.728596263446.issue10372@psf.upfronthosting.co.za> |
2010-11-09 16:08:39 | pitrou | link | issue10372 messages |
2010-11-09 16:08:38 | pitrou | create | |
|