Georg Brandl ge...@python.org added the comment:
Thanks, fixed in r69409.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5174
___
New submission from Calvin Spealman ironfro...@users.sourceforge.net:
The following example from the xmlrpclib docs has an obviously erronous
call to close() after the actual return.
(http://docs.python.org/library/xmlrpclib.html)
def python_logo():
handle = open(python_logo.jpg)
Calvin Spealman ironfro...@users.sourceforge.net added the comment:
The patch attached uses a with statement for proper file closing in the
examples.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5174