From 6ff2a7d12166c3e6c3418fa215ba27aa31981304 Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Sun, 31 Oct 2010 04:40:53 +0000 Subject: 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 60744a0..12c1c13 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): -- cgit v0.12