]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
#11700: proxy object close methods can now be called multiple times
authorR David Murray <rdmurray@bitdance.com>
Sat, 18 Jun 2011 02:23:04 +0000 (22:23 -0400)
committerR David Murray <rdmurray@bitdance.com>
Sat, 18 Jun 2011 02:23:04 +0000 (22:23 -0400)
commitf1138bb1b6ead7ddeae3e38e3c507d63d09669c3
treee2d0369d88eb7945d5b86ffe2439d96639dc0554
parentc74a6ba2d6c1f331896cf8dacc698b0b88c7e670
#11700: proxy object close methods can now be called multiple times

This makes them work like the close provided by regular file objects.  This
patch also backports the close-the-underlying-file code for _ProxyFile objects
that was introduced along with context manager support in the 3.x branch.
Lib/mailbox.py
Lib/test/test_mailbox.py
Misc/NEWS