logging: made _handlers a WeakValueDictionary.

This commit is contained in:
Vinay Sajip 2009-11-25 09:22:47 +00:00
parent c470d68d39
commit 17e94e052f

View file

@ -590,7 +590,7 @@ class Filterer(object):
# Handler classes and functions # 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 _handlerList = [] # added to allow handlers to be removed in reverse of order initialized
def _removeHandlerRef(wr): def _removeHandlerRef(wr):