summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2009-11-25 09:22:47 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2009-11-25 09:22:47 (GMT)
commit17e94e052faeb65061da6d152e0ceeea71b9b05b (patch)
tree461ec3e84b4c632905722a9d361e995ab6ff3047
parentc470d68d3980e2f6922441a5c97945679445fc3f (diff)
downloadcpython-17e94e052faeb65061da6d152e0ceeea71b9b05b.zip
cpython-17e94e052faeb65061da6d152e0ceeea71b9b05b.tar.gz
cpython-17e94e052faeb65061da6d152e0ceeea71b9b05b.tar.bz2
logging: made _handlers a WeakValueDictionary.
-rw-r--r--Lib/logging/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index f5dfc39..b1f92b0 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -590,7 +590,7 @@ class Filterer(object):
# Handler classes and functions
#---------------------------------------------------------------------------
-_handlers = {} #map of handler names to handlers
+_handlers = weakref.WeakValueDictionary() #map of handler names to handlers
_handlerList = [] # added to allow handlers to be removed in reverse of order initialized
def _removeHandlerRef(wr):