Merged revisions 70521 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70521 | benjamin.peterson | 2009-03-22 12:45:11 -0500 (Sun, 22 Mar 2009) | 1 line
close the file even if an exception occurs #5536
........
diff --git a/Misc/NEWS b/Misc/NEWS
index 9cb75b2..b6eeaa9 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -92,6 +92,9 @@
Library
-------
+- Issue #5536: urllib.urlretrieve makes sure to close the file it's writing to
+ even if an exception occurs.
+
- Fix Decimal.__format__ bug that swapped the meanings of the '<' and
'>' alignment characters.