[Python-checkins] r86019 - python/branches/py3k/Lib/logging/config.py
brian.curtin
python-checkins at python.org
Sun Oct 31 05:40:53 CET 2010
Author: brian.curtin
Date: Sun Oct 31 05:40:53 2010
New Revision: 86019
Log:
Fix a ResourceWarning for an unclosed socket.
Modified:
python/branches/py3k/Lib/logging/config.py
Modified: python/branches/py3k/Lib/logging/config.py
==============================================================================
--- python/branches/py3k/Lib/logging/config.py (original)
+++ python/branches/py3k/Lib/logging/config.py Sun Oct 31 05:40:53 2010
@@ -888,6 +888,7 @@
logging._acquireLock()
abort = self.abort
logging._releaseLock()
+ self.socket.close()
class Server(threading.Thread):
More information about the Python-checkins
mailing list