Fix test_mailbox by supporting context manager protocol for get_file() returns.

This commit is contained in:
Georg Brandl 2010-10-30 14:33:28 +00:00
parent 849e12bfe9
commit 6ce29fa7a8
3 changed files with 24 additions and 3 deletions

View file

@ -57,6 +57,9 @@ Core and Builtins
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.