From e27731d0bfb9193f4fb0ed80de511ac8fb4a0ee0 Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Sun, 31 Oct 2010 04:44:04 +0000 Subject: [PATCH] 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. ........ --- Lib/logging/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 258cc9c31c9..8e4fa80c6cd 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -866,6 +866,7 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT): logging._acquireLock() abort = self.abort logging._releaseLock() + self.socket.close() class Server(threading.Thread):