diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-10-31 04:40:53 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-10-31 04:40:53 (GMT) |
commit | 6ff2a7d12166c3e6c3418fa215ba27aa31981304 (patch) | |
tree | a76a47c8b6d696b2b803aa58b0a9c461a37288c8 /Lib/logging | |
parent | f53a626073a95a3b8a350120eecf43d1f78a5072 (diff) | |
download | cpython-6ff2a7d12166c3e6c3418fa215ba27aa31981304.zip cpython-6ff2a7d12166c3e6c3418fa215ba27aa31981304.tar.gz cpython-6ff2a7d12166c3e6c3418fa215ba27aa31981304.tar.bz2 |
Fix a ResourceWarning for an unclosed socket.
Diffstat (limited to 'Lib/logging')
-rw-r--r-- | Lib/logging/config.py | 1 |
1 files changed, 1 insertions, 0 deletions
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): |