[issue5174] xmlrpclib docs include incorrect file closing

2009-02-07 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r69409. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue5174] xmlrpclib docs include incorrect file closing

2009-02-06 Thread Calvin Spealman
Calvin Spealman added the comment: The patch attached uses a with statement for proper file closing in the examples. ___ Python tracker ___ __

[issue5174] xmlrpclib docs include incorrect file closing

2009-02-06 Thread Calvin Spealman
New submission from Calvin Spealman : 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") return xmlrpclib.Binary(handle.re