]> granicus.if.org Git - python/commit
Issue #11453: asyncore: emit a ResourceWarning when an unclosed file_wrapper
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 27 Jun 2014 21:52:03 +0000 (23:52 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 27 Jun 2014 21:52:03 +0000 (23:52 +0200)
commit4d4c69dc35154a9c21fed1b6b4088e741fbc6ae6
treef4ca0640823595c1beca048f262ee5035166ec14
parent252d40ef1ee627148ae12ab9cbf812cfeeb27655
Issue #11453: asyncore: emit a ResourceWarning when an unclosed 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.
Lib/asyncore.py
Lib/test/test_asyncore.py
Misc/NEWS