summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-10-31 04:40:53 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-10-31 04:40:53 (GMT)
commit6ff2a7d12166c3e6c3418fa215ba27aa31981304 (patch)
treea76a47c8b6d696b2b803aa58b0a9c461a37288c8 /Lib
parentf53a626073a95a3b8a350120eecf43d1f78a5072 (diff)
downloadcpython-6ff2a7d12166c3e6c3418fa215ba27aa31981304.zip
cpython-6ff2a7d12166c3e6c3418fa215ba27aa31981304.tar.gz
cpython-6ff2a7d12166c3e6c3418fa215ba27aa31981304.tar.bz2
Fix a ResourceWarning for an unclosed socket.
Diffstat (limited to 'Lib')
-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 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):