Message142681
Unlike Python 2, Python 3 warns when files aren't closed properly, which raises lots of warnings when running tabnanny:
~/devinabox/cpython$ ./python -m tabnanny Lib/
/home/anthony/devinabox/cpython/Lib/tabnanny.py:93: ResourceWarning: unclosed file <_io.TextIOWrapper name='Lib/sunau.py' mode='r' encoding='utf-8'>
check(fullname)
/home/anthony/devinabox/cpython/Lib/tabnanny.py:93: ResourceWarning: unclosed file <_io.TextIOWrapper name='Lib/sre_compile.py' mode='r' encoding='utf-8'>
check(fullname)
/home/anthony/devinabox/cpython/Lib/tabnanny.py:93: ResourceWarning: unclosed file <_io.TextIOWrapper name='Lib/this.py' mode='r' encoding='utf-8'>
check(fullname)
/home/anthony/devinabox/cpython/Lib/tabnanny.py:93: ResourceWarning: unclosed file <_io.TextIOWrapper name='Lib/difflib.py' mode='r' encoding='utf-8'>
check(fullname)
The attached patch fixes the problem. |
|
Date |
User |
Action |
Args |
2011-08-22 06:07:54 | anthonyb | set | recipients:
+ anthonyb, ncoghlan |
2011-08-22 06:07:54 | anthonyb | set | messageid: <1313993274.27.0.419233910291.issue12811@psf.upfronthosting.co.za> |
2011-08-22 06:07:53 | anthonyb | link | issue12811 messages |
2011-08-22 06:07:53 | anthonyb | create | |
|