From: Brian Curtin Date: Sun, 31 Oct 2010 04:42:40 +0000 (+0000) Subject: Merged revisions 86019 via svnmerge from X-Git-Tag: v3.1.3rc1~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9f3f08b8cdf08bc83af9c9ac2709a583f73d5db;p=python Merged revisions 86019 via svnmerge from 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. ........ --- diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 2ca784510f..4703a0a378 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -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)