diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-10-31 04:40:53 +0000 |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-10-31 04:40:53 +0000 |
commit | 0ef2b2e3ac1593227c7a4b59798ce246c49db795 (patch) | |
tree | 254893e0ec0fe5d9845440723509191017964d2f /Lib/logging | |
parent | 9db15b10bebb4f96d0f371c31a274494d51d4366 (diff) | |
download | cpython-0ef2b2e3ac1593227c7a4b59798ce246c49db795.tar.gz |
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 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): |