commit | bbb0412ad179b4a94d03ce592a5bc1d40724998e | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat Oct 30 23:16:28 2010 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sat Oct 30 23:16:28 2010 +0000 |
tree | 9abca71d3292a61bd79197552737d5d0518df2e1 | |
parent | 430d469758a7a5574409f06431b8596261d62893 [diff] [blame] |
if FileIO.__init__ fails, close fd
diff --git a/Misc/NEWS b/Misc/NEWS index cadafd0..21dcacf 100644 --- a/Misc/NEWS +++ b/Misc/NEWS
@@ -10,6 +10,8 @@ Core and Builtins ----------------- +- If FileIO.__init__ fails, close the file descriptor. + - Issue #10221: dict.pop(k) now has a key error message that includes the missing key (same message d[k] returns for missing keys).