[issue5536] urllib: urlretrieve() does not close file objects on failure

2009-03-22 Thread Petr Dolezal
New submission from Petr Dolezal petr.dole...@matfyz.cz: urllib.request.urlretrieve() does not close the file object created for the retrieval when it fails during processing of the incoming data and raises an exception (e.g. on HTTP 404 response). Therefore the file remains opened until the

[issue5536] urllib: urlretrieve() does not close file objects on failure

2009-03-22 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r70521. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5536