From: Brian Curtin Date: Sun, 31 Oct 2010 04:40:53 +0000 (+0000) Subject: Fix a ResourceWarning for an unclosed socket. X-Git-Tag: v3.2a4~229 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ff2a7d12166c3e6c3418fa215ba27aa31981304;p=python Fix a ResourceWarning for an unclosed socket. --- diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 60744a0b47..12c1c13b18 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -888,6 +888,7 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT): logging._acquireLock() abort = self.abort logging._releaseLock() + self.socket.close() class Server(threading.Thread):