]> granicus.if.org Git - python/commitdiff
(Merge 3.4) Issue #11453: asyncore: emit a ResourceWarning when an unclosed
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 27 Jun 2014 21:57:19 +0000 (23:57 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 27 Jun 2014 21:57:19 +0000 (23:57 +0200)
file_wrapper object is destroyed. The destructor now closes the file if needed.
The close() method can now be called twice: the second call does nothing.

1  2 
Lib/asyncore.py
Lib/test/test_asyncore.py
Misc/NEWS

diff --cc Lib/asyncore.py
Simple merge
Simple merge
diff --cc Misc/NEWS
Simple merge