]> granicus.if.org Git - python/commitdiff
Merged revisions 86019 via svnmerge from
authorBrian Curtin <brian.curtin@gmail.com>
Sun, 31 Oct 2010 04:42:40 +0000 (04:42 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Sun, 31 Oct 2010 04:42:40 +0000 (04:42 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86019 | brian.curtin | 2010-10-30 23:40:53 -0500 (Sat, 30 Oct 2010) | 2 lines

  Fix a ResourceWarning for an unclosed socket.
........

Lib/logging/config.py

index 2ca784510fc9e53e858ff436ff88add2b11a1922..4703a0a378a6f9e54ecd673d9205f6e5f6cbb7eb 100644 (file)
@@ -352,6 +352,7 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT):
                 logging._acquireLock()
                 abort = self.abort
                 logging._releaseLock()
+            self.socket.close()
 
     def serve(rcvr, hdlr, port):
         server = rcvr(port=port, handler=hdlr)