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 anthonyb
Recipients anthonyb, ncoghlan
Date 2011-08-22.06:07:53
SpamBayes Score 2.41956e-06
Marked as misclassified No
Message-id <1313993274.27.0.419233910291.issue12811@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-08-22 06:07:54anthonybsetrecipients: + anthonyb, ncoghlan
2011-08-22 06:07:54anthonybsetmessageid: <1313993274.27.0.419233910291.issue12811@psf.upfronthosting.co.za>
2011-08-22 06:07:53anthonyblinkissue12811 messages
2011-08-22 06:07:53anthonybcreate