]> granicus.if.org Git - python/commitdiff
Merged revisions 86019 via svnmerge from
authorBrian Curtin <brian.curtin@gmail.com>
Sun, 31 Oct 2010 04:44:04 +0000 (04:44 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Sun, 31 Oct 2010 04:44:04 +0000 (04:44 +0000)
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.
........

Lib/logging/config.py

index 258cc9c31c9d9e49c166e0351e2f66782af24992..8e4fa80c6cda292a895bfe0a152a5233dbb0eaa9 100644 (file)
@@ -866,6 +866,7 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT):
                 logging._acquireLock()
                 abort = self.abort
                 logging._releaseLock()
+            self.socket.close()
 
     class Server(threading.Thread):