summaryrefslogtreecommitdiff
path: root/Lib/logging
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-10-31 04:40:53 +0000
committerBrian Curtin <brian.curtin@gmail.com>2010-10-31 04:40:53 +0000
commit0ef2b2e3ac1593227c7a4b59798ce246c49db795 (patch)
tree254893e0ec0fe5d9845440723509191017964d2f /Lib/logging
parent9db15b10bebb4f96d0f371c31a274494d51d4366 (diff)
downloadcpython-0ef2b2e3ac1593227c7a4b59798ce246c49db795.tar.gz
Fix a ResourceWarning for an unclosed socket.
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/config.py1
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):