summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-10-31 04:42:40 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-10-31 04:42:40 (GMT)
commitd9f3f08b8cdf08bc83af9c9ac2709a583f73d5db (patch)
tree77dee3d1c7949f0a24b243a0b0b651b6fbf5c40a /Lib
parent0343d8f4f19d53f8cd968fdbc097e372821c61ba (diff)
downloadcpython-d9f3f08b8cdf08bc83af9c9ac2709a583f73d5db.zip
cpython-d9f3f08b8cdf08bc83af9c9ac2709a583f73d5db.tar.gz
cpython-d9f3f08b8cdf08bc83af9c9ac2709a583f73d5db.tar.bz2
Merged revisions 86019 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86019 | brian.curtin | 2010-10-30 23:40:53 -0500 (Sat, 30 Oct 2010) | 2 lines 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 2ca7845..4703a0a 100644
--- a/Lib/logging/config.py
+++ b/Lib/logging/config.py
@@ -352,6 +352,7 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT):
logging._acquireLock()
abort = self.abort
logging._releaseLock()
+ self.socket.close()
def serve(rcvr, hdlr, port):
server = rcvr(port=port, handler=hdlr)