Commit d9f3f08b authored by Brian Curtin's avatar Brian Curtin

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.
........
parent 0343d8f4
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment