commit | 6ce29fa7a89cd266ca9dd3e21ed40f9100eb70f6 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sat Oct 30 14:33:28 2010 +0000 |
committer | Georg Brandl <georg@python.org> | Sat Oct 30 14:33:28 2010 +0000 |
tree | 0a848c45edb3c61a90c828794897a7b455bc53c4 | |
parent | 849e12bfe943be4f18f5d0e21087b1cb08d472dd [diff] [blame] |
Fix test_mailbox by supporting context manager protocol for get_file() returns.
diff --git a/Misc/NEWS b/Misc/NEWS index afbf04c..827640a 100644 --- a/Misc/NEWS +++ b/Misc/NEWS
@@ -57,6 +57,9 @@ Library ------- +- Support context manager protocol for file-like objects returned by + mailbox ``get_file()`` methods. + - Issue #10246: uu.encode didn't close file objects explicitly when filenames were given to it. Patch by Brian Brazil.