commit | b364bfe2f406a99a83fc5b1073726ecbaa63f50f | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun Mar 22 17:45:11 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sun Mar 22 17:45:11 2009 +0000 |
tree | 629b0ca3ca59e84714cf0833bacf0d5a16aef60b | |
parent | 8ed252053658fb0375e1db0346c479b76b6d3c62 [diff] [blame] |
close the file even if an exception occurs #5536
diff --git a/Misc/NEWS b/Misc/NEWS index 5d494df..0b02dd9 100644 --- a/Misc/NEWS +++ b/Misc/NEWS
@@ -188,6 +188,9 @@ Library ------- +- Issue #5536: urllib.urlretrieve makes sure to close the file it's writing to + even if an exception occurs. + - Issue #5381: Added object_pairs_hook to the json module. This allows OrderedDicts to be built by the decoder.