Georg Brandl ge...@python.org added the comment:
Thanks, applied in r80461.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8522
Éric Araujo mer...@netwok.org added the comment:
Hello
You’re right, this idiom (new in 2.5, always enabled in 2.6) is now the
recommended way of doing this. Note that the older code does close the file
properly too, it’s just another way of doing it.
Would you like to provide a patch
Adrián Deccico decc...@gmail.com added the comment:
Hi, you are right. I am attaching the patch. I tested against 2.6.5 and trunk
(the file has no changed)
thanks
--
keywords: +patch
Added file: http://bugs.python.org/file17072/doanddont.rst.patch